// This program calculates the average of any number of numbers.
// Using the for structure
#include <iostream>
using namespace std;
#include <iostream>
int main()
{
int n, count;
float x, sum, avg;
sum = 0;
cout << "How many numbers? ";
cin >> n;
int size= n;
int array[size];
for (count=1; count<=n; count++){
cout << "Enter Number:...
John Johnson
“ First, solve the problem. Then, write the code. ”