通过次数
0
提交次数
(几何方面:六边形面积)编写程序,提示用户输入六边形的边长,然后显示它的面积。计算六边形面积的公式是:
在屏幕上显示这段文字 Enter the side: 输入数据
在屏幕上显示这段文字The area of the hexagon is 输出结果
Enter the side: 5.5
The area of the hexagon is 78.5895