Write a program to take a value from the user and print the square of it, unless it is more than 120. The message "I cannot square number "appear if the user types too large number. in python
Answers
Answered by
3
Answer:
We can also square a number with the math.pow() function. That function accepts the same arguments, but returns a floating-point value each time. So math.pow(3, 2) gives 9.0 rather than 9.
Similar questions