shubham3git
12/6/2018 - 8:57 AM

Odd Or Even

Odd Or Even

#Ask the user for a number. 
#Depending on whether the number is even or odd, print out an appropriate message to the user.
#If the number is a multiple of 4, print out a different message.
#Ask the user for two numbers: one number to check (call it num) and one number to divide by (check). 
#If check divides evenly into num, tell that to the user. 
#If not, print a different appropriate message.
num=input("Enter a number")
mod=int(num)%2
if mod == 0:
    print(str(num)+" is an even number")
else:
    print(str(num)+" is an odd number")