```python
import math

def volume_cylinder(r, h):
    """
    Calculates the volume of a cylinder.

    Args:
        r (float or int): The radius of the cylinder's base.
        h (float or int): The height of the cylinder.

    Returns:
        float: The volume of the cylinder.
    """
    return math.pi * (r ** 2) * h
```