Computer Science, asked by komalagrawal15092004, 5 months ago

Rewrite following program using for loop
t = 115
while t > 112:
print(t)
t=t-1
(Python)​

Answers

Answered by anindyaadhikari13
1

Question:-

➡ Rewrite the following program using for loop.

Solution:-

Given code,

t=115

while t>112:

print(t)

t=t-1

Using for loop, program will be,

for t in range(115,112,-1):

print(t)

Similar questions