Question: Write a python program that will output the following for the numbers 1 - 100. a yes if the number is divisible by 3 a

Write a python program that will output the following for the numbers 1 - 100.

a "yes" if the number is divisible by 3

a " no" if the number is divisible by 5

a " maybe" if the number is divisible by both 3 and 5

the number itself if none of the above.

Here are the first 5 outputs: 1, 2, yes, 4, no, ...

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!