A integer type variable 'number' is given. Return the absolute value of a "number".
Input:number.
Output: answer.
Input | Output |
---|---|
-8 | 8 |
Return the value of expression: .
Input:expression.
Output: answer.
Input | Output |
---|---|
-2.55 |
A integer type variable 'n' is given. Return the value of the expression: .
Use the pow()
function
Input:n.
Output: answer.
Input | Output |
---|---|
3.5 | 60.75 |
A integer type variable 'n' is given. Return the value of the expression: .
Use the pow()
function.
Input:n.
Output: answer.
Input | Output |
---|---|
4 | 4.0 |
Integer type variables 'n' and 'x' are given. Return the value of the expression: .
Use the pow()
function
Input:n, x.
Output: answer.
Input | Output |
---|---|
3 6 | 945 |
Float type variables 'a' is given. 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 |
Integer type variables 'x' and 'y' are given. Return the value of the expression: .
Use the pow()
function
Input:x, y.
Output: answer.
Input | Output |
---|---|
5 2 | 805 |
Integer type variables 'x' and 'y' are given. Return the value of the expression: .
Use the pow()
function
Input:x, y.
Output: answer.
Input | Output |
---|---|
7 1 | 252 |
Integer type variables 'x' and 'y' are given. Return the value of the expression: .
Use the pow()
function
Input:x, y.
Output: answer.
Input | Output |
---|---|
2 4 | 160 |
Integer type variables 'x' and 'y' are given. Return the value of the expression: .
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 |