countdown cpp problem | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
0

countdown cpp problem

it does not go all the way it just stops. https://code.sololearn.com/cF8n0jAPuUxP/?ref=app

27th Jan 2021, 3:11 PM
Evan Pangulayan
1 ответ
+ 4
your *for* loop is moving forward and at the same time your value of *n* is decreasing making the loop to break in between. there are ton of ways to fix it. I just replaced the loop with a simple while loop 👇 https://code.sololearn.com/c8ihDjTk2fEe/?ref=app
27th Jan 2021, 3:17 PM
Arsenic
Arsenic - avatar