Computer Science, asked by Adityam3, 3 months ago

Convert the following for loop to while loop in Python:
for a in range(10,30,5):
for b in range(1,a,2):
print(a*b,end=”,”)
print()

Answers

Answered by Anonymous
1

Python Program to Print all Prime Numbers between an Interval

#Take the input from the user:

lower = int(input("Enter lower range: "))

upper = int(input("Enter upper range: "))

for num in range(lower,upper + 1):

if num > 1:

for i in range(2,num):

if (num % i) == 0:

break.

Answered by renukavenkat2129
1

Answer:

Loops are an essential feature of any programming or scripting language. Having the ability to execute a task multiple times is fundamental to any language.

Similar questions