Advertisement
Guest User

Untitled

a guest
Jun 27th, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. num =int(input('Enter a Number of ur choice'))
  2. remainder=num%2
  3. if remainder>0 :
  4. print(str(num) +'is odd')
  5. else:
  6. print(str(num)+'is even')
  7. remain_4=num%4
  8. if remain_4 == 0 :
  9. print(str(num),'is a multiple of 4')
  10. num1=int(input('enter number as a divisor'))
  11. check=int(input('enter numbr to be checked'))
  12. if check%num1 ==0 :
  13. print(str(check),'is a multiple of ', str(num1))
  14. else:
  15. print(str(check), 'is not a multiple of ', str(num1))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement