All pastes #402967 Raw Edit

Anonymous

public text v1 · immutable
·published 2007-03-20 02:45 UTC
rendered paste body
int main() {
     int num, largest, smallest, counter, numero;
     float value, average, sum;


   cout << "Program 4  Christen Sanford   ces0152@unt.edu" << endl << endl;


   do {
      cout << "Enter a value in the range of 5 to 10: "; 
       cin >> num;


         if ((num < 5) || (num > 10)) {
           cout << "This value is not in the proper range; please try again" 
           << endl << endl;
         }
   }  while ((num < 5) || (num > 10));

   cout << endl;

For (temp=0, temp < 4, temp++) {
   counter = num;
   numero = 1;
   do {
       cout << "Enter value " << numero << ":";
        cin >> value;
       counter--;
       numero++;
      } while (counter > 0);
} 




return 0;
}