0 out of 464 challenges solved
Write a Python function `lateral_surface_area_cone(r, h)` that calculates the lateral surface area of a cone given its radius `r` and height `h`.
The formula for the lateral surface area of a cone is:
\[ LSA = \pi \cdot r \cdot l \]
where:
- \( l \) is the slant height of the cone, calculated as \( \sqrt{r^2 + h^2} \).
#### Example Usage
```python [main.nopy]
print(lateral_surface_area_cone(5, 12)) # Output: 204.20352248333654
print(lateral_surface_area_cone(10, 15)) # Output: 566.3586699569488
print(lateral_surface_area_cone(19, 17)) # Output: 1521.8090132193388
```import math
def lateral_surface_area_cone(r, h):
"""
Calculate the lateral surface area of a cone given its radius and height.
Parameters:
r (float): The radius of the cone's base.
h (float): The height of the cone.
Returns:
float: The lateral surface area of the cone.
"""
# Calculate the slant height
# Calculate the lateral surface area
# Return the result
pass