Computer Science, asked by ghanavi1990, 4 months ago

Write a program to enter unequal numbers. If the first number is greater then display square of the smaller number and cube of the greater number otherwise, vice versa. If the number are equal display the message " Both are equal".

Answers

Answered by senseofscience
0

Answer:

in python the programme is :

a=int(input("enter first number: ")

b=int(input("enter first number: ")

if a<b:

print(a*a)

print(b*b*b)

elif a==b:

print("Both are equal")

else:

print(b*b)

print(a*a*a)

Similar questions