write a program in python to find the numbers that are divisible by 6 from 31 to 60
Answers
Answered by
3
Required 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:
- START
- Iterate through the numbers in range 31 to 60.
- Check if any number is divisible by 6 or not. If true, display the number.
- STOP
Refer to the attachment for output☑.
Attachments:
Similar questions