Sololearn: Learn to Code
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
1st Apr 2020, 9:58 AM
SalimLouDev
SalimLouDev - avatar
+ 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.
1st Apr 2020, 10:34 AM
HonFu
HonFu - avatar
0
A loop will execute code until its condition becomes false.
1st Apr 2020, 9:57 AM
Fernando Pozzetti
Fernando Pozzetti - avatar