AREA OF RECTANGLE USING INLINE FUNCTION

by - December 19, 2018

/*WRITE A PROGRAM TO FIND AREA OF RECTANGLE USING INLINE FUNCTIONS*/

#include<iostream.h>
#include<conio.h>
inline int area(inta,intb)
{
 return (a*b);
}
void main()
{
 clrscr();
 int a, b, ar;
 cout<<"Enter the length";
 cin>>a;
 cout<<"Enter the breath";
 cin>>b;
 cout<<"The area is"<<ar;
 getch();
}

----------------------------------------------------------
OUTPUT:-


You May Also Like

1 comments