(Solved): Q: (PYTHON) By usin&…..

QUESTION

Question

(PYTHON)

By using the while statement, write a program that counts up to 30 and prints the numbers that can be divided by 5.

ANSWERS:

Step 1

Answer

Python program by using while loop  that counts up to 30 and prints the numbers that can be divided by 5

Program

count=0
while count<=30: # while statement to count upto 30
    if count%5==0:   # condition to cheak divisible by 5
 

Leave a Comment

Your email address will not be published. Required fields are marked *