Hey there! I am a beginner with C++ and has now begun to learn me how arrays works but I'm stuck on a practice problem and the program them wants me to do is to:
Write a program that takes in 50 values and prints out the highest, the lowest, the average and then all 50 input values, one per line.
I am totally stuck at this practice problem the only code I could write was this:
I'm do not know how to do so the program prints out which number was the highest, lowest and the averange and then all 50 input values. Can somebody help me how to do this?, Please.Code:#include <iostream> using namespace std; int main() { int value[50]; for (int i = 0; i < 50; i++) { cout << "Enter value " << i << ": \n"; cin >> value[i]; } }