New course! Every coder should learn Generative AI!
Try a free lesson+ 1
Loops is used to repeat or iterate any part of code you want for a condition , For example :
int i=0;
While(I<10)
{
cout << i << endl;
i++;
}
This example will print the i 10 times
+ 1
Have you reached that part in your tutorial? It's all in there.
If it's hard to understand for you, it would be best if you told us very clearly what exactly confuses you.
If you just ask 'How do loops work', we are only going to repeat what you didn't understand the first time around.
0
A loop will execute code until its condition becomes false.