Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def foo_moo(x):
- x = int(x)
- if x % 2 == 0 and x % 3 == 0:
- return "FooMoo"
- elif x % 2 == 0:
- return "Foo"
- elif x % 3 == 0:
- return "Moo"
- else:
- return "Boo"
- value = input()
- print(foo_moo(value))
Advertisement
Add Comment
Please, Sign In to add comment