How many instances of the word "while" can you find in the code?
The stuff in the round brackets after "while" defines the condition, the stuff in the curly brackets defines what is to be done so long as the condition is met.
How many instances of the word "while" can you find in the code?
The stuff in the round brackets after "while" defines the condition, the stuff in the curly brackets defines what is to be done so long as the condition is met.