Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started