+ 1
Print square and cube of a number
2 ответов
+ 2
x=2
print(x**2) # for square of number
#output=4
print(x**3) #for cube of number.
#output=8
0
import math
n = int(input())
print(str(n) + "^2 = " + str(n*n))
print(str(math.sqrt(n)) + " * " + str(math.sqrt(n)) + " = " + str(n))