I made a program that is suppose to receive 20 numbers or less and find the average, then show all numbers entered but my average does not show and a line pops up after every number returned.
Check the flow of your code - the loop on line 26 you are resetting total each loop, also you are multiplying and not adding value in num[x].
Furthermore, you are showing the average total calculated each time it loops - averages are calculated from adding all values together then dividing by the total amount of numbers, so you should be looping and adding all numbers together, then calculating the average at the end.
1 2 3 4 5 6 7 8 9 10
int total = 0;
int average;
for (int x = 0; x < amount_num; x++)
total = total + num[x];
average = total / amount_num;
cout << "Average: " << average << endl;