I don't really have a code to input-
my major problem is that I am trying to find the max number of 10 inputs. so far I know that the user is going to input 10 numbers and store them into an array I just have no clue on how to get the biggest number of the inputs. I just need a general point in the right direction. or a code example something I can see and dissect to understand what I am doing wrong.
int x[10];
for (int i = 0; i < 10; i++)
{
cout << "Enter #" << i + 1 << endl;
cin >> x[i];
}
int max = x[0];
for (int i = 0; i < 10; i++)
{
if (x[i] > max)
{
max = x[i];
}
}
cout << max << endl;