Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- num = int(input("Enter a number\n"))
- if num % 2 == 0:
- print ("The number " + str(num) + " is even")
- else:
- print ("The number " + str(num) + " is odd")
- if num % 4 == 0:
- print ("The number " + str(num) + " is a multiple of 4")
- else:
- print ("The number " + str(num) + " is not a multiple of 4")
- num1= int(input("Enter a number \n"))
- check= int(input("Enter another number \n"))
- if num1 % check == 0:
- print (str(num) + " divides evenly by " + str(check))
- else:
- print(str(num) + " does not divide evenly by " + str(check))
Add Comment
Please, Sign In to add comment