我是菜鸟···求求帮忙
怎么求任意两个数的乘积
#include<iostream>
using std::cout;
using std::cin;
int product(int, int);
int main()
{
cout<<"Enter two int number: ";
int number1, number2;
cin>>number1>>number2;
cout<<"\nThe resault is: "<<product(number1, number2);
return 0;
}
int product(int n1, int n2)
{
return n1*n2;
}