// Program to demonstrate Default argument to find area of the rectangle.

| |


#include<iostream.h>
#include<conio.h>
void area(int x=2,int y=5);
void main()
{
cout<<"This is a program to demostrate default argument"<<endl<<endl;
int l,b;
cout<<"Enter the length and breath of rectangle :";
cin>>l>>b;
area(l,b);
area(l);
area(b);
area();
getch();
}
void area(int x,int y)
{
cout<<"Area of triangle is :"<<x*y<<endl;
}



<