Hello friends!!!!!
Product if two numbers in C
It's a function with argument and the return value
C LANGUAGE
Rishendra
9/28/20241 min read
#include <stdio.h>
int mul(int ,int );
int main() {
int r,a,b;
printf("We are going to calculate the product n");
printf("Enter two numbers : ");
scanf("%d%d", &a, &b);
r = mul(a,b);
printf("result is %d", r);
}
int mul(int a , int b) {
return a*b;
}
Output :
We are going to calculate the product
Enter two numbers : 6 8
result is 48
=== Code Execution Successful ===