+ 4
someone help me understand here please. both Loop and for loop
need help on loop topic
2 Réponses
+ 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 ☺
+ 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..