+ 1

Land ho!! problem What should be the condition in the for loop? Because this code is running for infinite except for 1 case.

https://www.sololearn.com/coach/46?ref=app all other cases except the first one are failing!😣

17th Jul 2021, 7:23 AM
Gargi
Gargi - avatar
3 Respuestas
+ 1
If only the first one is right, then its works for people < 20. Think again, what is if people >=20?
17th Jul 2021, 8:05 AM
Angela
Angela - avatar
+ 2
What is your code?
17th Jul 2021, 7:44 AM
Slick
Slick - avatar
0
Angela thank you i got it 😊😀 i just had to change the increment from x+20 to x+=20.
18th Jul 2021, 6:22 AM
Gargi
Gargi - avatar