In this python program, we will learn how to calculate the volume and surface area of a cube.
In geometry, a cube is a three-dimensional solid object bounded by six square faces, facets or sides, with three meetings at each vertex. The cube is the only regular hexahedron and is one of the five Platonic solids. It has 6 faces, 12 edges, and 8 vertices.
Surface Area of Cube = 6 * length * length
Volume of the Cube = length * length * length
Lateral Surface Area of Cube = 4 * (length * length)
Here is the Source code of the program to calculate the volume and surface area of a cube.
Enter the Length of any Side of a Cube: 8
Surface Area of Cube = 384.00
Volume of cube = 512.00
Lateral Surface Area of Cube = 256.00
Comments