j

Saturday, 7 November 2015

Write a program that take lenght, width and height from user and find the volume, there volume =length*width*height

Program Solution

#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
int len,wid,hei,v;
cout<<"Enter length ::";
cin>>len;
cout<<"Enter width ::";
cin>>wid;
cout<<"Enter heigth ::";
cin>>hei;
v=len*wid*hei;
cout<<"Valume is "<<v;
getch();
}

Output



Subscribe to this Blog via Email :