Given a argument called 'n' type of int , return its absolute value
Input:number.
Output: answer.
| Input | Output |
|---|---|
| -8 | 8 |
Calculate the value of expression: .\
Input:expression.
Output: answer.
| Input | Output |
|---|---|
| -2.55 |
Calculate the value: .
Use the pow function
Input:n.
Output: answer.
| Input | Output |
|---|---|
| 3.5 | 60.75 |
Calculate the value: .
Use the pow function.
Input:n.
Output: answer.
| Input | Output |
|---|---|
| 4 | 4.0 |
Calculate the value: .
Use the pow function
Input:n, x.
Output: answer.
| Input | Output |
|---|---|
| 3 6 | 945 |
Round the result to 2 decimal places.
Use the round function
Input:a.
Output: answer.
| Input | Output |
|---|---|
| 3.456 | 3.46 |
| 7.5 | 7.5 |
Calculate the value: .
Use the pow function
Input:x, y.
Output: answer.
| Input | Output |
|---|---|
| 5 2 | 805 |
Calculate the value: .
Use the pow function
Input:x, y.
Output: answer.
| Input | Output |
|---|---|
| 7 1 | 252 |
Calculate the value: .
Use the pow function
Input:x, y.
Output: answer.
| Input | Output |
|---|---|
| 2 4 | 160 |
Round the result to 2 decimal places.
Use the pow function
Use the round function
Input:x, y.
Output: answer.
| Input | Output |
|---|---|
| 8 4 | 10.0 |