while( x < 10 )
{
cout << "X is less than 10!\n";
x = x - 2;
}
- Program 2.3a While loop to guarantee
proper input.
- Program 2.3b While loop to collect a sequence
of input data from user.
- Program 2.3c While loop to collect a sequence
of data with valid data checking.
- Program 2.3d While loop to let user enter as
much data as user likes.
Lab Exercise #1: Modify Program 2.3d so that it keeps track of the
number bad tries to enter data, the maximum value and the minimum value and
prints these values out.