Q: Multiply Function with two parameters So I'm trying to learn C++ and I got stuck at Functions. I understand the concept but I can't figure out how I can multiply the two parameters I submited to it.
So, I want to have a function called multiply.
void multiply(int first, int second)
{

}

And I want to call it in _tmain with
cout << multiply(2,3) <<endl;

And when it prints out, I want to see the value of (2*3). 
Any ideas? :( 

A: int multiply(int first, int second)
{
    return first * second;
}

is what you want.
Notice that the function's return type (the type before the function's name in its declaration) is now an int, meaning that when you call that function, you get an int back. Then, you define the value of the int being returned with the return keyword.

A: int multiply(int first, int second)
{
return first*second;
}

