Python Program to Compute Volume and Surface Area of Cuboid
Write Python Program to Compute Volume and Surface Area of Cuboid
# Python Program to Compute Volume and Surface Area of Cuboid
length = 4
breadth = 5
height = 6
# cuboid area formula
area_cuboid = 2 * ((length * breadth) + (breadth * height) + (height * length))
# cuboid volume formula
volume = length * breadth * height
print("Surface area of the cuboid having length ", length, " breadth ", breadth, " and height ", height, " is --> ", area_cuboid)
print("Volume of cuboid having length", length, " breath", breadth, " and height ", height, " is --> ", volume)
Output:
Surface area of the cuboid having length 4 breadth 5 and height 6 is --> 148
Volume of cuboid having length 4 breath 5 and height 6 is --> 120