Convert the following for loop into a while loop:
for k in range (20,10,-5):
print(k)
Answers
Answered by
0
Answer:
while True:
for k in range(20,15,-5):
print(k)
Explanation:
We can use while True loop to make this loop rup infinite in python. Note: You will not see -5 because it is out of the range.
Similar questions
Hindi,
1 month ago
Computer Science,
1 month ago
Environmental Sciences,
2 months ago
Computer Science,
2 months ago
English,
10 months ago
Math,
10 months ago