You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Write a function called foo_moo that takes a number as an argument and returns the following statements according the below mentioned conditions. Then, finally prints the statement in the function call.
# If the number is divisible by 2, it should return "Foo".
# If the number is divisible by 3, it should return "Moo".
# If the number is divisible by both 2 and 3, it should return "FooMoo". Otherwise, it returns "Boo".
# Example1: Function Call: foo_moo(5) Output: Boo
# Example2: Function Call: foo_moo(4) Output: Foo
# Example3: Function Call: foo_moo(6) Output: FooMoo