Question: IN PYTHON foobaz.py Write a program that prompts a user for a number and then checks to see if that number is dvisible by 3,

IN PYTHON

foobaz.py

Write a program that prompts a user for a number and then checks to see if that number is dvisible by 3, by 5, or both 3 and 5. If it is divisible by 3, then the word "foo" should be printed out. If it is divisible by 5, then print out "baz". And, if it is divisible by both 3 and 5, then "foobaz" should be printed out. It should not print out foo, baz, and foobaz if it is divisble by both 3 and 5.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!