countdown cpp problem | Sololearn: Learn to code for FREE!


countdown cpp problem

it does not go all the way it just stops.


1/27/2021 3:11:55 PM

Evan Pangulayan

1 Answer

New Answer


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 👇