Input two numbers and the print the cube of the smaller number and print the square of the greater number
Answers
Answered by
2
a=int(input("First number : "))
b=int(input("Second number : "))
if(a>b):
print("Cube of smaller no. :",b*b*b)
print("Square of greater no. :",a*a)
else:
print("Cube of smaller no. :",a*a*a)
print("Square of greater no. :",b*b)
Similar questions