Create a Python script that will accept three integers and will check each input number. If the input number is EVEN it will display the square of cube of the number and if the number is ODD it will display the square of the number.
Sample Output
Number 1: 5
Number 2: 8
Number 3: 3 The square of 5 is 25
The cube of 8 is 512 The square of 3 is 9.
number = int(input('Enter number: '))
if number%2 == 0:
print(number**3)
else:
print(number**2)
Comments
Leave a comment