Function to find product of two variables.

int product(int,int);
void main()
{
int a,b,c;
printf("Enter the two number");
scanf("%d %d",&a,&b);
c=product+(a,b);
printf("The product is %d",c);
getch();
}
int product(int x,int y)
{
int z;
z=x*y;
return(z);
}

No comments:

Post a Comment