Python Chapters

Python Program to Compute the Surface Area & Volume of a Cube

Structure of Python Program - Overview
Cube_Length = input("Enter Length of Cube :")

Surface_Area = 6.0 * Cube_Length * Cube_Length
Volume = pow(Cube_Length, 3)

print "\n\nSurface Area of Cube is :" , Surface_Area
print "Volume of Cube is :" , Volume

Output :
Enter Length of Cube : 10

Surface Area of Cube is : 600 .0
Volume of Cube is : 1000

Description :

Surface Area of Cube can be calculated as
Surface Area = 6.0 x L2
L = Length of Side

Volume of Cube can be calculated as
Volumne = L 3
L = Length of Side


Leave a comment
Recent Comments
No Comments