
Patrick B. answered 08/17/21
Math and computer tutor/teacher
using namespace std;
#include <iostream>
#define N (5)
void input( int []);
void findtotal( int []);
int main()
{
int iNums[N];
input(iNums);
findtotal(iNums);
}
void input( int A[])
{
for (int iLoop=0; iLoop<N; iLoop++)
{
cout << " Please input integer # " << (iLoop+1) << " of " << N << " :>";
cin >> A[iLoop];
}
}
void findtotal( int A[])
{
long lSum=0;
for (int iLoop=0; iLoop<N; iLoop++)
{
lSum += A[iLoop];
}
cout << endl <<" the total is " << lSum << endl;
}

Patrick B.
would appreciate if you could send me an email so I can explain08/18/21
Fantasy F.
hi would appreciate if you could give a mini explanation so I will be able understand better. Thank You08/17/21