Computer Science, asked by hellperneeder, 8 months ago

Convert the following while loop to its corresponding for loop : (1)
i= 1
while i*i<n:
print(2* i + 1)
i += 1
else:
print('Hakuna Matata')​

Answers

Answered by SilentCrafter
0

Answer:

for i in range(1, n):

if i*i<n:

 print(2*i+1)

 i+=1

else:

 print("Hakuna Matata")

 break

Similar questions