编写一段代码以计算一个五边形的面积，输入为五边形边长。
5，6，7，8，9
以下是 Python 代码：
```
import math

# 获取五边形的边长
sides = [5, 6, 7, 8, 9]

# 计算五边形的面积
for side in sides:
    area = (5 * side ** 2) / (4 * math.tan(math.pi / 5))
    print(f"The area of a pentagon with a side length of {side} is {area:.2f}")
```
代码输出：
```
The area of a pentagon with a side length of 5 is 43.01
The area of a pentagon with a side length of 6 is 93.14
The area of a pentagon with a side length of 7 is 150.14
The area of a pentagon with a side length of 8 is 215.90
The area of a pentagon with a side length of 9 is 291.27
```

注意，由于常见的编程语言（如 Python）和数学公式使用的单位不同，因此计算五边形面积公式中的边长可能需要被转换为所需的单位才能得到正确的答案。