write a program to enter two u equal number. If the first number is greater then display square of the smaller number & cube of the greater number otherwise vice-versa. If the no r equal display both the number r equal
Answers
Answered by
6
choice = "Yes"
while choice = "Yes":
x = int(input("Enter a number: "))
y = int(input("Enter a second number: "))
print()
if x > y:
print(y**2, "and", x**3)
else:
print(x**2, "and", y**3)
print()
choice = input("Would you like to go again? [Yes/No]: ")
print()
Attachments:
Equestriadash:
Thanks for the Brainliest!
Similar questions