Thursday, July 28, 2011

Volume of a box

#include<stdio.h>
void main()

{
int length,breadth,height,volume;     //declaration of variables
clrscr();
printf("Enter length,breadth,height of the box :\n");
scanf("%d%d%d",&length,&breadth,&height);
volume=length*breadth*height;         //calculation of volume
printf("\nVolume = %d",volume);
getch();
}

0 comments:

Post a Comment