Computer Science, asked by pooja55273, 4 months ago

write a c program to accept dimension lenth L , base B, and hight H of a cuboid and display surface area? surface area =2 ( la +lh+bhi) , volume = lbh​

Answers

Answered by tiku210302
1

Answer:

#include <stdio.h>

int main()

{

float l,b,h,area,volume;

printf("Enter length of rectangle: ");

scanf("%f", &l);

printf("Enter base of rectangle: ");

scanf("%f", &b);

printf("Enter height of rectangle: ");

scanf("%f", &h);

area = 2*(l*b+b*h+h*l);

printf("Surface area of cuboid=%f",area);

volume = l*b*h;

printf("Volume of cuboid=%f",volume);

return 0;

}

Similar questions