Its my first day in class and the teacher isnt here. He wants us to write a program where you enter 20 numbers and then outputs the lowest number and highest number. Any help would be greatly appreciated. Thanks in advance!
cout << "This program will tell you the smallest and greatest of any 20 numbers." << endl;
constint NUM_NUMS = 20; //Number of Numbers
int num[NUM_NUMS]; //Holds Numbers
//Input the 20 numbers
cout << "Enter the Numbers.":
for (int index = 0; index < NUM_NUMS; index++)
cout << "Number: " << (index+1);
cin >> num[index];
//Display the highest number.
cout << "Here is the highest number: "for (int index = 0; index < NUM_NUMS; index++)