Next: Exercises
Up: The do-while statement
Previous: Multiple Choice Questions
while statement and a
do-while statement?
int i;
i = -12;
do
{
cout << i << endl;
i = i - 1;
}
while (i > 0)
do-while statement. What would be the
difference from your solution using a while statement in the
case where n is zero?