#2567. 2.22几何方面:六边形面积

    ID: 2567 problem_type.undefined ms MiB 尝试: 0 已通过: 0 难度: (无) 上传者: 标签>JAVA练习题几何数学计算浮点数处理输入输出

2.22几何方面:六边形面积

Cannot parse: Cannot read properties of null (reading 'length')

2.22几何方面:六边形面积

题目描述

(几何方面:六边形面积)编写程序,提示用户输入六边形的边长,然后显示它的面积。计算六边形面积的公式是:

                    

输入说明

在屏幕上显示这段文字 Enter the side: 输入数据

输出说明

在屏幕上显示这段文字The area of the hexagon is  输出结果

样例

输入

Enter the side: 5.5

输出

The area of the hexagon is 78.5895