Computer Science, asked by riyugangwani2, 6 months ago

2. Rewrite the following for loop program using the while loop.
a=int(input("Enter the first number"))
b=int(input("Enter the second number"))
for i in range(a,b,3)
print(a*i)
print("Program Over")​

Answers

Answered by mk5643931
6

Answer:

initialise the i value

Answered by mishraabhi8924
32

Explanation:

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

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

c=a

while(c<b):

print(a*c)

c=c+3

print("program over")

Similar questions