+ 3
Can someone explain LOOP for me. Please in a layman's term.
Explain LOOP in a simple way.
5 Answers
+ 5
which one? for or while?
+ 4
Loop is like a staircase,you can use it up to the usable part,if a 6 stroyed building has Staircase up to 4th floor,then you can go up to 4th floor,but if your desired destination is 3rd floor,then you stop on 3rd floor,though you can move up to 4th floor,if your destination is 6th floor then you cancel your journey at the beginning or not start your journey.
If the building has Staircase up to 6th floor then you can move as many times as you wish or for unlimited time.
+ 3
When you want to run the same code a couple of times for example n times you can use a loop. In addition, you can use a loop to run the same code till something happens..
Hope I helped
+ 1
Yh u did thanks a lot
+ 1
a loop is the repetition of the code until it reaches the line of code that tells it to stop.