Program to find the surface area of the cylinderExplanationIn this program, we have a cylinder with the given radius and height. We need to find its Surface area. A cylinder is a threedimensional geometrical figure/container with straight parallel sides and two circular crosssections. So we have three surfaces of the cylinder. The surface area of two circular crosssections = 2( Π × r × r ) The surface area of parallel sides = Circumference times the height = 2 Π × r × h Total Surface Area of Cylinder = 2( Π × r × r ) + 2 Π × r × h = 2 Π (r + h) FormulaSurface Area of Cylinder = 2 Π (r + h) Here, r is the radius and h is the height of the cylinder. Π ( pi ) = 22/7 = 3.14 Algorithm
ComplexityO(1) SolutionPythonOutput: Surface Area Of Cylinder : 44.0 COutput: Surface Area of Cylinder is: 44.00000 JAVAOutput: Surface Area of Cylinder is: 44.000000 C#Output: Surface Area of Cylinder is: 44 PHPOutput: Surface Area Of Cylinder is = 44
Next Topic#
