Rewrite the following code fragments : (a) using for loop x=50 while (x>0): print(x) x-=3 (b) using while loop for x in range(5,23): if x%3 ==0: print(x)
Answers
Answered by
2
Answer:
python language.
Explanation:
a) for x in range(50,0,-3):
print x
b)
x=5
while(x<23):
if(x%3==0):
print x
x = x+1
Please let me know if you want to understand anything.
Answered by
0
Answer:
hello
happy friendship day..
Similar questions