muhammad_nasif

TASK_03

Apr 13th, 2021
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.25 KB | None | 0 0
  1. def foo_moo(x):
  2.     x = int(x)
  3.     if x % 2 == 0 and x % 3 == 0:
  4.         return "FooMoo"
  5.     elif x % 2 == 0:
  6.         return "Foo"
  7.     elif x % 3 == 0:
  8.         return "Moo"
  9.     else:
  10.         return "Boo"
  11.  
  12.  
  13. value = input()
  14. print(foo_moo(value))
  15.  
Advertisement
Add Comment
Please, Sign In to add comment