Guest User

Untitled

a guest
Jan 21st, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. num = int(input("Enter a number\n"))
  2. if num % 2 == 0:
  3. print ("The number " + str(num) + " is even")
  4. else:
  5. print ("The number " + str(num) + " is odd")
  6.  
  7. if num % 4 == 0:
  8. print ("The number " + str(num) + " is a multiple of 4")
  9. else:
  10. print ("The number " + str(num) + " is not a multiple of 4")
  11.  
  12. num1= int(input("Enter a number \n"))
  13. check= int(input("Enter another number \n"))
  14.  
  15. if num1 % check == 0:
  16. print (str(num) + " divides evenly by " + str(check))
  17. else:
  18. print(str(num) + " does not divide evenly by " + str(check))
Add Comment
Please, Sign In to add comment