Using Functions

I just want to thank sorthon and Ramses12 as well as a host of others...for their input on my last program..that knowledge was invaluable...I now want to tackle functions...which quite frankly are a bit difficult for me to grasp....

I basically have to get a program to enter two integer numbers, multiply the 2 integer values together and return the integer values.
Within the function print on to the screen what is happening within the function. Then Call the function I make to multiply the 2 numbers that the user inputted. Then print the value to the screen.

Heres what I've done so far....thanks in advance..

#include <iostream>
#include <cmath>
using namespace std;

void Multifunc (); // This is my multiplication prototype */
int main ()

int num1;
int num2;

{

cout << "Please enter two integer numbers : " << endl;
cin >> num1

Multifunc (); / Calling the function * /

so do you just need to return a multiplication result of those 2 numbers?
-----------------------------------
#include <iostream>
#include <cmath>
using namespace std;

int Multifunc (int a, int b)
{
return a*b;
}

int main ()
{

int num1;
int num2;

cout << "Please enter two integer numbers : " << endl;
cin >> num1 >> num2;

cout<<"Result " << Multifunc (num1, num2);

system("pause");
return 0;
}
HINT: [code]your code[/code] -> your code
Topic archived. No new replies allowed.