Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- num =int(input('Enter a Number of ur choice'))
- remainder=num%2
- if remainder>0 :
- print(str(num) +'is odd')
- else:
- print(str(num)+'is even')
- remain_4=num%4
- if remain_4 == 0 :
- print(str(num),'is a multiple of 4')
- num1=int(input('enter number as a divisor'))
- check=int(input('enter numbr to be checked'))
- if check%num1 ==0 :
- print(str(check),'is a multiple of ', str(num1))
- else:
- print(str(check), 'is not a multiple of ', str(num1))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement