Computer Science, asked by Shaell29, 4 months ago

write a program in python to find the numbers that are divisible by 6 from 31 to 60

Answers

Answered by anindyaadhikari13
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:

  1. START
  2. Iterate through the numbers in range 31 to 60.
  3. Check if any number is divisible by 6 or not. If true, display the number.
  4. STOP

Refer to the attachment for output☑.

Attachments:
Similar questions