InterviewSolution
Saved Bookmarks
| 1. |
Write a program in python to find the numbers that are divisible by 6 from 31 to 60 |
|
Answer» d Answer:-Question:Write a PROGRAM in Python to find the numbers that are divisible by 6 from 31 to 60.Solution:Here comes the códe. print("Numbers divisible by 6 from 31 to 60 are: ")for i in range(31,60+1): if i%6==0: print(i,END=" ")Algorithm:STARTIterate through the numbers in range 31 to 60.Check if any NUMBER is divisible by 6 or not. If true, display the number.STOPRefer to the attachment for output☑. |
|