ENSC 104: DIGITAL COMPUTER PROGRAMMING

WHILE LOOP



Syntax:

   while( x < 10 )
      {
      cout << "X is less than 10!\n";
      x = x - 2;
      }

 

 


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.