
四面体是具有三角形底面的金字塔,即它的底面是三角形,每条边都有一个三角形。三个三角形全部汇聚到一点。如图,
四面体面积 = (√3)a2

示例
查找四面体面积的代码使用数学库来查找数字的平方和平方根,使用sqrt 和 pow 方法。为了计算面积,我们采用一个浮点数,并给出表达式“((sqrt(3)*a*a))”的值。
#include <stdio.h>
#include <math.h>
int main() {
int a= 5;
float area, volume;
printf("Program to find area and volume of Tetrahedron</p><p>");
printf("The side of Tetrahedron is %d </p><p>", a);
area = (sqrt(3)*(a * a));
printf("The area of Tetrahedron is %f </p><p>", area);
return 0;
}输出
Program to find area and volume of Tetrahedron The side of Tetrahedron is 5 The area of Tetrahedron is 43.301270










