Question #304488

Create a program that identifies if the entered number is am odd number.Use the mod operator


Expert's answer

num = int(input('Enter an integer number: '))

if num % 2 == 0:
    print('The number is even')
else:
    print('The numbe is odd')

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS