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
6
Answer:
initialise the i value
Answered by
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