C Program To Find Product Of Two No Using MACRO

How to write a C Program To Find Product Of Two No Using MACRO in C Programming Language ?


Solution For C Program :

/*C Program To Find Product Of Two No Using MACRO.*/

#include<stdio.h>
#include<conio.h>
#define prod(t,r) t*r
void main()
{
int a,b,c;
printf("enter two no. for finding product\n");
scanf("%d%d",&a,&b);
c=prod(a,b);
printf("%d",c);
getch();
}

You may also learn these C Program/Code :

C Program To Swap Two Numbers Without Using Third Variable


Learn More :