For Loop challenge, didnt solve

Hiya,

So here is the solution I thought was right, however it is not working.
It goes one time and then it closes. I have literally no idea why its not working. I have tried placing brackets and changing the position of the for-loop.
Of course, I also googled…
I’m guessing it has something to do with the for loop not acknowledging the value of count. I am a bit too stubborn to look at the solution right away.
Without giving away the answer, are there any hints for me?

Here is the screenshot:

Regards, Kim

I am not sure about c++ syntax, but the “;” in line 16 seems fishy to me.
(The one at the end, to be more precise)

Yep, that was the problem. Thanks!

Privacy & Terms