Write a program to find product of two integers using your own function.

This answer is restricted. Please login to view the answer of this question.

Login Now
#include <stdio.h>

int multiply(int, int);

int main(){

    int a, b;

    printf("Enter Two Numbers: ");
    scanf("%d%d", &a, &b);

    printf("Product of %d x %d = %d", a, b, multiply(a, b));
    return 0;


//Own Function to perform multiplication
int multiply(int a, int b){
    return a * b;

The output of above program is

Enter Two Numbers: 3
Product of 3 x 6 = 18


If you found any type of error on the answer then please mention on the comment or report an answer or submit your new answer.
Leave your Answer:

Click here to submit your answer.

  Loading . . .