刻有正六边形的圆的面积?
刻在正六边形上的圆有6个点接触正六边形的六个边。
要找到内切圆的面积,我们需要先找到半径。对于正六边形,使用公式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