C program to find the volume of a cuboid.

 

01  #include <stdio.h>
02
03 int main()
04 {
05 int l,w,h;
06 int volume;
07
08 printf("Enter length,width, & height : ");
09 scanf("%d %d %d", &l,&w,&h);
10
11 volume = l*w*h;
12
13 printf("nVolume of Cuboid is : %d", volume);
14 return 0;
15 }
 
 OUTPUT:
Enter length,width, & height : 10 5 4

Volume of Cuboid is : 200

Related Post

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.