free c programming course
Tuesday, 20 December 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
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment