Advertisement
Guest User

Untitled

a guest
Aug 31st, 2016
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. #!/usr/bin/python
  2. import math
  3.  
  4. num = int(input("Please enter a number:"))
  5. check = int(input("Enter checking number:"))
  6.  
  7. if num%4 == 0:
  8. print(str(num) +" is multiple of 4")
  9. if num&1 == 0:
  10. print(str(num) + " is an even number")
  11. else:
  12. print(str(num) + " is a odd number")
  13.  
  14. if num%check == 0:
  15. print(str(num) +" is divisible by "+str(check))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement