+ 4

someone help me understand here please. both Loop and for loop

need help on loop topic

13th Feb 2018, 4:38 PM
William Wll Luhanga
William Wll Luhanga - avatar
2 ответов
+ 4
https://code.sololearn.com/c0vlSk6sR7O3/?ref=app For example, I was able to write 100 numbers to screen with for loop. So we use it when we want to perform some operations many(n) times and in effective way. Hope it helps ☺
13th Feb 2018, 5:09 PM
Sad
Sad - avatar
+ 5
We use loop when we want to preform many operations and we don't want to write too much lines of code. For example, if I want to write numbers from 1 to 100, I would have to write a lot of lines of code. But I will just use loop. For loop is one of the types of loops. There are other types of loops too. For example: while loop, do while loop..
13th Feb 2018, 5:04 PM
Sad
Sad - avatar