Python Program to Find Surface Area of a Cube

Python program to find surface area of a cube is provided on this page.

Python Program To Find Surface Area Of A Cube

Storing length, breadth, height in three variables. We took it same for all three so storing it in one variable named 'a'.

The using formula to find surface area of cube 6a2, where a is the side.


length = 10
breadth = 10
height = 10

a = length = breadth = height

surfacearea = 6 * ( a * a )

print("Surface Area of Cube is ", surfacearea)

Output

Surface Area of Cube is 600

Related To Python

Comments