Question: Write a Python program that searches for and prints the first multiple of 7 that is greater than 2 0 , using a while loop.

Write a Python program that searches for and prints the first multiple of 7 that is
greater than 20, using a while loop. Once the program finds this multiple, it should
use a broak statement to exit the loop and then print the found multiple. For
example, 21 is a multiple of 7 so your program should exit the loop when it
evaluates 21.
returns the remainder of the division of one number by another.
Instructions:
Use a white loop to start checking numbers greater than 20.
Check if each number is a multiple of 7.
Use the
statement to exit the ioop once you find the first multiple of 7.
Print the multiple of 7 that was found.

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 Programming Questions!