#include <iostream>
using namespace std;
int main(){
int i;
int size;
float Array[9];
float max;
float min;
cout << "Enter size of the array: ";
for(int i=0. i<5; i++){
cin << Array[i];
}
max = Array[1];
min = Array[1];
for(int i=0; i<size; i++){
if(Array[i] > max){
max = Array[i];
}
if(Array[i] < min){
min = Array[i]
}
}
cout << "Maximum value " << max << endl;
cout << "Minimum value " << min << endl;
return 0;
}
Just started to learn C/C++ and I am stuck trying to finding the minimum and maximum value of the input. Also I have to set the range at 9 inputs if its more or its a letter, then I have to display a warning to the user input certain amount.