Back To C++ User Defined Functions Index
//program to create a function that inputs two numbers and finds their product #include
#include
void product(int,int); void product(int a,int b) { int prod; prod=a*b; cout<<"product of two numbers is "<
>a; cout<<"enter value for b"; cin>>b; product(a,b); getch(); }