Professional Documents
Culture Documents
Ali al-musharfawi
while (expression)
statement;
The do Statement
The general form of the do statement is:
do
statement;
while (expression);
Example1: Output: ( 0 1 2 3 4 5 6 7 8 9 )
i = 0;
while ( i < 10 )
{
cout << i;
i ++;
}
C++ Lecturer. Ali al-musharfawi