Iterative Statement : While Loop

The while loop.
As mentioned earlier, the while loop is an entry controlled loop. The syntax of a while loop is
while (condition) statement
and its function is simply to repeat statement while expression is true. While is a reserved word of C++; condition is a Boolean expression; and statement can be simple or compound statement.
For example, we are going to make a program to count down using a while loop: LEARN MORE>>

No comments: