I'm absolutely new to coding. I'm doing a course and was following all steps but there is something I couldn't figure out.
This is the first code that I wrote. It prints 5 times "Hello"
.
I tried to change the code. Instead of writing i + 1
, I wrote i++
, as the instructor told. It again should have printed 5 times "Hello"
, but it runs infinitely.
What am I doing wrong? Thanks in advance.