Computer Science, asked by arshia93, 3 months ago

Rewrite the above program using while loop​

Attachments:

Answers

Answered by allysia
5

Question:

Rewrite the above program using while loop.

a=int(input("Enter first number"))

b=int(input("Enter second number"))

for i in range(a,b,3):

   print(a*i)

print("Program over")

Answer:

a=int(input("Enter first number"))

b=int(input("Enter second number"))  

while a<b:

   print(a)

   a+=3

Explanation:

  • Take upper and lower limits input in a and b.
  • Begin loop with condition a<b so that when a equates to or exceeds b the loop stops running.
  • a increases by 3 every time the loop runs.
Answered by anubhabkumar2020
5

Answer:

India political map with major rivers and dams marked in it

Explanation:

me please ...

Similar questions