#include #include int main() { const int MAXNUMS = 4; int count; float num, total, average; cout << "\nThis program will ask you to enter " << MAXNUMS << " numbers.\n\n"; count = 1; total = 0; cout << setiosflags(ios::fixed) << setprecision(3); while (count <= MAXNUMS) { cout << "Enter a number: "; cin >> num; total = total + num; count++; } count--; average = total / count; cout << "\nThe average of the numbers is " << average << endl; return 0; }