ok my program works the only thing i cant figure out how to do is, print the sum, average and the numbers (entered) in reverse order. after it tells my the real sum and average.
her is what i got so far
#include "stdafx.h";
#include <iostream>
#include <string>
using namespace std;
int numbers, sum, average;
int main()
{
int numbers[5];
double sum, average;
int counter;
cout <<"Enter five numbers: " << endl;
sum = 0;
for(counter = 0; counter < 5; counter++)
{
cin >> numbers[counter];
sum = sum + numbers [counter];
average = sum / 5;
}
cout << endl;
cout <<"The sum of the numbers is : " << sum << endl;
cout <<"The average of the numbers is: " << average;
cout << endl;
cout <<" "<< endl;
return 0;
}