Page 1 of 1

looping??

PostPosted: Tue Feb 16, 2010 1:49 pm
by poopbrigade
help pleaseXD. :roll:
how do you do looping in G.E.???
like while, do while, and espicially for loops.

tanx in advance. :D

Re: looping??

PostPosted: Tue Feb 16, 2010 5:57 pm
by Bee-Ant
FOR loop :
Code: Select all
int i,j;
for(i=0;i<j;i++)
{
//action here
}

DO WHILE loop :
Code: Select all
int i,j;
do
{
//action here
}
while (i<j);

Re: looping??

PostPosted: Tue Feb 16, 2010 6:15 pm
by thunderios
Code: Select all
int i=0;
while (i<10)
{
    x += 5;
    i++;
}


BA was quicker.

Re: looping??

PostPosted: Tue Feb 16, 2010 6:24 pm
by Bee-Ant
Oh, i have never use DO,WHILE neither both in GE.

I think thunder has more speed than bee or ant :D

Re: looping??

PostPosted: Wed Feb 17, 2010 11:07 am
by poopbrigade
XD thanx alot.!!!!