Number = float(input('Enter a number = '))
print('-'*10)
if (Number % 2 == 0):
print('Even')
print('Square = ' + str(Number * Number))
else:
print('Odd')
print('Cube = ' + str(Number * Number * Number))
print('-'*10)
if (Number % 2 == 0):
print('Even')
print('Square = ' + str(Number * Number))
else:
print('Odd')
print('Cube = ' + str(Number * Number * Number))
No comments:
Post a Comment