Tuesday, December 20, 2011

Find Area of Rectangle in C++


// Write a Program to find Area of Rectangle

#include <iostream.h>
#include <conio.h>
void main ()
{
int area,l,b;
clrscr ();
cout <<"Enter Length: ";
cin >>l;
cout <<"Enter Breadth: ";
cin >>b;
area=l*b;
cout <<"\n Area is: "<<area;
getch ();
}

No comments:

Post a Comment