//OrinTill Qimid CS1A Chapter 4, P. 294, 4
//
/**************************************************************
 * Largest Number
 * 
 * ____________________________________________________________
 * This program will display the largest number out of the 10 number inputed.
 * ____________________________________________________________
 * INPUT
 * Largest : the largest number
 * smallest : the smallest number
 * 
 * OUTPUT
 * Num : The number input
 **************************************************************/
#include <iostream>
#include <iomanip>
#include <cmath>
using namespace std;



int main() 
{
  int Num[10];
  int largest = Num[0];
  int smallest = Num[0];
  cout<<"Please enter 10 numbers"<<endl;
   for (int i = 0; i < 10; i++) 
   {
        cout << "Enter value " << i + 1 << ": ";
        cin >> Num[i];
        if (Num[i] > largest) {
            largest = Num[i];
        }
        if (Num[i] < smallest) {
            smallest = Num[i];
        }
   }
    // Display the largest and smallest values
    cout << "The largest value is: " << largest << endl;
    cout << "The smallest value is: " << smallest << endl;

}


