Write a c program to find product of two numbers using function.
Answers
Answered by
4
Answer:
#include <stdio.h>
int multiplyNum(int a, int b);
void main()
{
int num1,num2,product;
printf("Enter the two number ");
scanf("%d %d",&num1,&num2);
product=multiplyNum(num1,num2);
printf("The product of these numbers :%d",product);
}
int multiplyNum(int a, int b)
{
int result=a*b;
return result;
}
Similar questions