Write a program to calculate Volume of the Box :-


//Program to calculate Volume of the Box

#include<stdio.h>
#include<conio.h>
void main()
{
int l,b,h,v;

printf("\n Enter the length, breadth and height of box:\n");

scanf("%d%d%d",&l,&b,&h);

v=l*b*h;
printf("Volume of box is: %d\n",v);
getch();
}

Output:

	
Enter the length, breadth and height of box:
2
4
6
Volume of box is: 48

			

Previous Next