WAP TO FIND AREA OF RECTANGLE ( USING MACRO AND TYPEDEF FUNCTION )

 

#include<iostream.h>
#include<conio.h>
#define rect(l,b) l*b;
void main()
{
     double rectangle;
     typedef int integer;
     integer len,bre;
     clrscr();
     cout<<”Enter length and breath:”;
     cin>>len>>bre;
     rectangle=rect(len,bre);
     cout<<rectangle;
     getch();
}


Comments

Popular Posts