Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- num = input('input a number: ')
- if num%2 == 0:
- if num%4 == 0:
- print("%d is even number and multiple of 4")%(num)
- else:
- print("%d is even number")%(num)
- else:
- print("%d is odd number")%(num)
- dividend = input('give numerator: ')
- divisor = input('give denominator: ')
- if dividend%divisor == 0:
- print("{} is divisible by {}!".format(dividend,divisor))
- else:
- print("{} is not divisible by {}!".format(dividend,divisor))
Add Comment
Please, Sign In to add comment