Hi,
I trying to let the user input how many numbers that they want to average and outputting the average of those numbers. I have this code, but not working as aspected.
#include <iostream>
using namespace std;
int main ()
{
int numCount, total;
double average;
cout << "How many numbers do you want to average? ";
for (int count = 0; count < numCount; count++)
{
total = 0;
int num;
cout << "Enter a number: ";
cin >> num;
count++;
}
average = total / numCount;
cout << "The average is " <<average<<endl;
return 0;
}