Showing posts with label Program to find product of two no using MACRO. Show all posts
Showing posts with label Program to find product of two no using MACRO. Show all posts

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