Wednesday, July 20, 2011

Program to find product of two no using MACRO

/*Serial No.99     [swami74.cpp]*/

#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();
}

No comments:

Post a Comment

If you have any doubt, feel free to ask...