calculate the surface area of a cylinder python

50

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

Comments

Submit
0 Comments