Pages

Sunday 6 November 2011

Area of Rectangle


1.     Area of Rectangle

//Area of Rectangle
#include<iostream.h>
#include<conio.h>
void main()
{
int l,b,a;
cout<<"Enter the length";
cin>>l;
cout<<"Enter the breadth";
cin>>b;
a=l*b;
cout<<"Area of Rectangle";
cout<<a;
getch();
}

OUTPUT:
Enter the length 9
Enter the breadth 8
Area of Rectangle 72

No comments:

Post a Comment