#include <iostream.h>
void multiply(int &number, int &numberTwo); //Prototype
int main()
{
int a,b;
long int answer;
cout<<"Enter two numbers separated by spaces: ";
cin>>a>>b;
answer=multiply(a,b); //"answer" gets the return from the second variable as its value
cout<<"\nThe product of those two numbers is "<<answer<<".";
}
void multiply(int &number, int &numbertwo) //Dummy variables
{
return number*numbertwo; //Returns the answer to "answer" variable in main() because we assigned this value to that variable
}
void multiply(int &number, int &numberTwo); //Prototype
int main()
{
int a,b;
long int answer;
cout<<"Enter two numbers separated by spaces: ";
cin>>a>>b;
answer=multiply(a,b); //"answer" gets the return from the second variable as its value
cout<<"\nThe product of those two numbers is "<<answer<<".";
}
void multiply(int &number, int &numbertwo) //Dummy variables
{
return number*numbertwo; //Returns the answer to "answer" variable in main() because we assigned this value to that variable
}