Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

calculate the surface area of a cylinder python

def compute_surface_area_cylindar(radius, height):
    surface_area = 2 * math.pi * r * h + 2 * math.pi * math.pow(r, 2)
    return surface_area

radius = input("Radius of circle:")
radius = int(radius)
r = radius
height = input("Height of the cylinder:")
height = int(height)
h = height
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #calculate #surface #area #cylinder #python
ADD COMMENT
Topic
Name
8+5 =