write a program to enter the number and perform the following square of the number cube of the entered number, number to the power 25, square root of the number and the absolute value of the entered number
Answers
Answered by
0
Answer:
In this program, we are using these two methods of Math class:
Math.pow(m,n):
It is used to get the power of any base, it will return m to the power of n (m^n).
Math.sqrt(m):
It is used to get the square root of any number, it will return square root of
Answered by
2
The following codes have been written using Python.
Once the number has been entered, the tasks as per the question are performed. Exponentiation is represented using double asterisks (**). Python has a built-in function to print the absolute value of a number, called . The syntax is as follows:
The absolute value of a number is the number irrespective of its sign, i.e., negative or positive.
Similar questions