free c programming course
Tuesday, 20 December 2011
Volume of Box in C++
//Write a program to find volume of box
#include <iostream.h>
#include <conio.h>
void
main
()
{
int
area
,
l
,
b
,
h
;
cout
<<
"Enter Length, Breadth and Height: "
;
cin
>>
l
>>
b
>>
h
;
area
=
l
*
b
*
h
;
cout
<<
"Area is: "
<<
area
;
getch
();
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment