write a menu driven program in java to accept the length breadth and height of a cuboid as input and calculate its volume, area of the four walls and total surface area according to the given formulae volume =l*b*h area of the four wall =2*( l+b)*h Total surface area = 2*(l*b+b*h+l*h)
Answers
Answered by
0
Input : 2 3 4
Output : Area = 24
Total Surface Area = 52
Input : 5 6 12
Output : Area = 360
Total Surface Area = 324
Area = l*w*h
Total Surface Area = 2*l*w + 2*w*h + 2*l*h
where l, h, w are length, height and width of
cuboid respectively.
Similar questions
Science,
4 days ago
History,
9 days ago
Math,
9 days ago
Environmental Sciences,
8 months ago
Math,
8 months ago