Pages

Adsense responsive

Tuesday, 5 February 2013

C PROGRAM: TO MULTIPLY TWO NUMBERS USING FUNCTION

CODING:
#include<stdio.h>
#include<conio.h>
main()
{
int mul(int,int),num1,num2,prod;
clrscr();
printf("Enter first number: ");
scanf("%d",&num1);
printf("Enter second number: ");
scanf("%d",&num2);
prod=mul(num1,num2);
printf("\n\nProduct of %d and %d is= %d",num1,num2,prod);
getch();
}
int mul(int n1,int n2)
{
return(n1*n2);
}


CODING


OUTPUT

For any query or suggestion please comment below...

No comments:

Post a Comment