Advertisement
Guest User

Untitled

a guest
Feb 19th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. num = int(input("Enter number you want checked: "))
  2. check = int(input("Enter number it want it checked against: "))
  3.  
  4. if (num % 4) == 0:
  5. print("Your number is a multiple of 4 and even.")
  6. elif (num % 2) == 0:
  7. print ("Your number is even.")
  8. else:
  9. print ("Your number is odd.")
  10.  
  11. if (num % check) == 0:
  12. print(str(check) + " divides evenly into " + str(num) + ".")
  13. else:
  14. print(str(check) + " does not divide evenly into " + str(num) + ".")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement