Alright I will probably catch shit for this but I need help with this basic problem for my C++ class. So someone who knows coding see if you can help. i keep getting the error that 'mult' : identifier not found when i try to compile the program, and if i try to identify it, it states too many identifiers. if someone could help that would be swell. here is the code.
#include <iostream>
using namespace std;
int main ( ) {
double b, e;
int count=1;
while (count<4)
cout<<"Please input first number: "<<endl;
cin>>b;
cout<<"Please input second number: "<<endl;
cin>>e;
mult(b,e);
cout<<mult<<endl;
count++;
system("pause");
return 0;
}
double mult(double num1, double num2) //function prototype
{ return (num1*num2);
}
I am in no way good at programming nor have a desire to pursue this study past this semester, but i needed extra credits for my engineering degree so ya, any help is appreciated.
#include <iostream>
using namespace std;
int main ( ) {
double b, e;
int count=1;
while (count<4)
cout<<"Please input first number: "<<endl;
cin>>b;
cout<<"Please input second number: "<<endl;
cin>>e;
mult(b,e);
cout<<mult<<endl;
count++;
system("pause");
return 0;
}
double mult(double num1, double num2) //function prototype
{ return (num1*num2);
}
I am in no way good at programming nor have a desire to pursue this study past this semester, but i needed extra credits for my engineering degree so ya, any help is appreciated.
Comment