Loop Question
#1

If i have this Loop:

pawn Код:
for (new a = 0; a < 3; a++)
{
    if (a == 1) continue;
    printf("a = %d", a);
}
a is equal to 1 and it will be skiped.

That code can be equal to:

pawn Код:
for (new a = 0; a < 3; a++)
{
    if (a == 1) return 0;
    printf("a = %d", a);
}
Or i'm a bit confused?
Reply


Messages In This Thread
Loop Question - by TheArcher - 24.07.2011, 23:03
Re: Loop Question - by Vince - 24.07.2011, 23:10
Re: Loop Question - by [HiC]TheKiller - 24.07.2011, 23:12
Re: Loop Question - by TheArcher - 24.07.2011, 23:14
Re: Loop Question - by [HiC]TheKiller - 24.07.2011, 23:25
Re: Loop Question - by TheArcher - 24.07.2011, 23:30

Forum Jump:


Users browsing this thread: 1 Guest(s)