#include using namespace std; int main() { int x, n = 0, limit; float average, sum = 0; cout << "How many numbers do you wish to enter?" << endl; cin >> limit; while (n < limit) { cout << "Enter a number:" << endl; cin >> x; sum = sum + x; n = n + 1; } average = sum / limit; cout << "The average is " << average << endl; return (0); }