Wednesday 21 December 2011


Volume of a box




To accept the length,breadth and height of a rectangular box and to display its volume
#include<stdio.h>
Void main();
{
float length,breadth,height,volume;
clrscr();
printf(“enter the dimension of a box\n”);
printf(“length ?”);
scanf(“%f”,&length);
printf(“breadth ?”);
scanf(“%f”,&breadth);
printf(“height ?”);
scanf(“%f”,&height);



No comments:

Post a Comment