Hi Guys,
I'm kinda new at this..but I need help cause I keep on getting this error and I don't know what's wrong with it.
So Please Help Me.
Thanks.
Here's My Code:
#include <iostream>
using namespace std;
int addition (int,int,int,int,int, int);
int addition (int a, int b, int j, int k, int l, int m)
{
int c;
c=a+b+j+k+l;
return (c);
}
int main ()
{
int d;
int e;
int f;
int g;
int h;
int i;
cout<<endl;
cout<<"Average Calculator"<<endl;
cout<<endl;
cout<<"Please input a number: ";
cout<<endl;
cin>>d;
cout<<endl;
cout<<"Please input another number: ";
cout<<endl;
cin>>e;
cout<<endl;
cout<<"Please input another number: ";
cout<<endl;
cin>>f;
cout<<endl;
cout<<"Please input another number: ";
cout<<endl;
cin>>g;
cout<<endl;
cout<<"Please input another number: ";
cout<<endl;
cin>>h;
cout<<endl;
i = addition(d+e+f+g+h);
cout << "The result is " << i <<endl;
system("pause");
return 0;
}