Quote:
Originally Posted by TauTrumpsPi
That is called a count controlled while loop. Basically, it is a loop statement
It will execute the method the value of the value.variable times
So, look at it like this
Counter = 1
Flag = 3
While Counter <= Flag
count.variable set value to (Counter + 1)
(blahblahblah) method
So, the (blah) method will execute until the counter exceeds the Flag, in which it will stop. This is usually only useful in languages that don't have loop statements
|
Thanks for the info!
That helped a lot : )
They are useful when an assessment says no "for loops" as well. lol