内接于正六边形的圆的面积?
内接于正六边形的圆与正六边形的六条边各有一个切点。
要找到内接圆的面积,我们首先需要找到半径。对于正六边形,半径可以使用公式 a(√3)/2 计算。
现在,内接圆的面积为 3πa*a/4
示例
六边形的边长 - 4
面积 = 37.68
示例代码
#include <stdio.h>
int main(void) {
int a = 14;
float pie = 3.14;
float area = (float)(3*a*a*pie/4);
printf("The area of circle inscribed in the hexagon of side %d is %f", a, area);
return 0;
}输出
The area of circle inscribed in the hexagon of side 14 is 461.580017
广告
数据结构
网络
关系数据库管理系统
操作系统
Java
iOS
HTML
CSS
Android
Python
C 编程
C++
C#
MongoDB
MySQL
Javascript
PHP