i get a bunch of errors with my mult func. being at the top and i forgot how to make functions properly how do i fix this?
Code:
#include <iostream>
#include <cstdlib>
using namespace std;
int a;
int b;
int c;
void voided() {
cout << "doesnt return anythin so im void" << endl;
}
void mult(a, b);
int main()
{
cout << "4 + 6 IS "<< mult(4, 6) <<"!" << endl;
cout << "void function "<< voided <<"" << endl;
system("PAUSE");
return 0;
}
mult(a, b) {
a + b = c; //a plus the value of be assigns the answer to c
return c; // gives the answer ex if a is 2 and b is 3 it would return 5
}