Ok, here is an example used in the tutorial: #include <iostream.h>

int mult(int x, int y);

int main()
{
int x, y;
cout<<"Please input two numbers to be multiplied: ";
cin>>x>>y;
cout<<"The product of your two numbers is "<<mult(x, y);
return 0;
}
int mult(int x, int y)
{
return x*y;
}

Now, here's what is much shorter and does the same thing: #include <iostream.h>

int main()
{
int a;
int b;
cout<<"enter two numbers to be multiplied: ";
cin>>a>>b;
int c = a*b;
cout<<"The product of your two numbers is: "<<c;
return 0;

}


Soo....whats the use of what they did in the tutorial? Also, I don't get it anyways, someone care to explain?