Can someone please explain looping to me?

closed account (4wRjE3v7)
and what does it mean when you set it up

count = 1;?
or if it is
count = 0??

thanks
closed account (zb0S216C)
In a general sense, looping is the repetitive execution of a group (or a single) statements while a certain condition is not yet met, or while a condition remains true. In regards to setting up the loop, it depends on what you're trying to achieve.

Wazzak
little extra,
when you program, its like

1
2
3
4
5
6
7
8
9
10
bool condition = true;

while( condition == true ) {

   //repeat any code inside those "while" brackets as long as "condition" is true, 
   //and of course you must put something like "condition = false" statement to end the loop, 
   //otherwise its not gonna stop until your IDE stop the program or the program crash your pc.

}
Last edited on
closed account (4wRjE3v7)
Thanks guys I appreciate it.
Topic archived. No new replies allowed.