+ 3

Can someone explain LOOP for me. Please in a layman's term.

Explain LOOP in a simple way.

19th Feb 2018, 9:49 PM
Shadrach Akuffo Tei
Shadrach Akuffo Tei - avatar
5 Answers
+ 5
which one? for or while?
19th Feb 2018, 9:50 PM
Obbu
Obbu - avatar
+ 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.
19th Feb 2018, 10:43 PM
📈SmileGoodHope📈
📈SmileGoodHope📈 - avatar
+ 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
19th Feb 2018, 10:00 PM
Nitzan
Nitzan - avatar
+ 1
Yh u did thanks a lot
19th Feb 2018, 10:38 PM
Shadrach Akuffo Tei
Shadrach Akuffo Tei - avatar
+ 1
a loop is the repetition of the code until it reaches the line of code that tells it to stop.
20th Feb 2018, 3:02 AM
Yaritza Irizarry