Guest User

Untitled

a guest
Dec 10th, 2018
98
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 a number: "))
  2. if num % 2 == 0 and num % 4 == 0:
  3. print(num,'is an even number and a multiple of 4.')
  4. elif num % 2 == 0:
  5. print(num, 'is an even number.')
  6. else:
  7. print(num, 'is an odd number.')
  8. print()
  9. print()
  10. num = int(input("Enter a number: "))
  11. check = int(input("Enter another number: "))
  12. if num % check == 0:
  13. print(check, 'divides evenly into', num)
  14. else:
  15. print(check, 'does NOT divides', num, 'evenly.')
Add Comment
Please, Sign In to add comment