do you mean you want:
Code:
cout<<"Please input two numbers to be multiplied: ";
cin>>x>>y;
cout<<"The product of your two numbers is "<<mult(x, y);
repeated say, 10 times? if so, here you go:
Code:
#include <iostream.h>
int mult(int x, int y);
int main()
{
int x, y;
int i;
for (i=0;i<10;i++)
{
cout<<"Please input two numbers to be multiplied: ";
cin>>x>>y;
cout<<"The product of your two numbers is "<<mult(x, y) << endl;
}
return 0;
}
int mult(int x, int y)
{
return x*y;
}
that will simply run the same operation of requesting two numbers, multiplying and printing, 10 times
hope that clears it up