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;
printf("Enter length ::");
scanf("%d",&len);
printf("Enter width ::");
scanf("%d",&wid);
printf("Enter heigth ::");
scanf("%d",&hei);
v=len*wid*hei;
printf("Valume is %d",v);
getch();
}

Output



Subscribe to this Blog via Email :