A C program to find product of two given numbers using function
#include<stdio.h>
#include<conio.h>
int product(int n1,int n2);
void main()
{
int n1,n2,p;
clrscr();
printf("\n Enter two numbers\n");
scanf("%d%d",&n1,&n2);
p=product(n1,n2);
printf("\nThe product of numbers is::%d",p);
getch();
}
int product(int x,int y)
{
int pr;
pr=x*y;
return(pr);
}
|