Question: 12. Create a while loop to print the numbers from 1 to 100 but stop the loop early if the number is divisible by 5

 12. Create a while loop to print the numbers from 1

12. Create a while loop to print the numbers from 1 to 100 but stop the loop early if the number is divisible by 5 and 7 using break. Your while loop condition must be set to stop at 100 and must contain an if statement that includes a test involving % 5 and \% 7. 13. Use print() to print each loop output on new line. Refer below an example of running your program. The lines in bold show where random numbers will show up, so your results should be different. 14. Run your program. Make sure it runs. Take screenshot of program output showing

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!