can someone tell me what the condition is to exit the loop? Is it while x-1 not equal to 0?Code:while ((x-1))
{
++counter;
x--;
}
Printable View
can someone tell me what the condition is to exit the loop? Is it while x-1 not equal to 0?Code:while ((x-1))
{
++counter;
x--;
}
Did you get a chance to test it in the 30 minutes waiting for a reply?
And yes is the answer.
Yes i did test it but getting a result and watching watchers doesn't necessarily explain the lines definition...