PYTHON

Write a python program to calculate Surface Area and Volume of a Cuboid.

length = float(input('Please Enter the Length of a Cuboid: ')) width = float(input('Please Enter the Width of a Cuboid: ')) height = float(input('Please Enter the Height of a Cuboid: ')) # Calculate the Surface Area SA = 2 * (length * width + length * height + width * height) # Calculate the Volume Volume = length * width * height print("\n The Surface Area of a Cuboid = %.2f " %SA) print(" The Volume of a Cuboid = %.2f" %Volume);

OUTPUT…..

Leave a Reply

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