alarm
Ask a question for free
Computer Science
Lanadar

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: 1
Register to add an answer
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;

}

460
Viktor
For answers need to register.
Contacts
mail@expertinstudy.com
Feedback
Expert in study
About us
For new users
For new experts