Program to find the surface area of a cubeExplanationIn this program, we have a cube with equal length, width, and height. We need to find its Surface Area. A cube is a three-dimensional geometrical figure/container having all its surfaces with equal sides (length, breadth, and height). We have six equal square(surfaces). Surface Area of Cube = 6 (Surface area of one Square) Total Surface Area Of Cube = 6( side × side ) FormulaAlgorithm
ComplexityO(1) SolutionPythonOutput: Surface Area of Cube is: 150 COutput: Surface Area of Cube is: 150.00000 JAVAOutput: Surface Area of Cube is 150.0000 C#Output: Surface Area of Cube is: 150 PHPOutput: Surface Area of cube is = 150
Next Topic#
|