```python
import math

def volume_cone(r, h):
  """
  Calculates the volume of a cone.

  Args:
    r: The radius of the cone's base.
    h: The height of the cone.

  Returns:
    The volume of the cone.
  """
  return (1/3) * math.pi * r**2 * h
```