Rewrite the following program using while loop:
p=1:
for i in range(0,10,3):
print(i)
print (“This is the end of loop “)
Answers
Answered by
0
Answer:
p=1
while p<10:
if p%3==0:
print(p)
print ('this is end of loop')
Answered by
0
p = 1
while p != 10:
print(p)
p = p + 3
Similar questions