จัตุรมุขคือพีระมิดที่มีฐานเป็นรูปสามเหลี่ยม นั่นคือ มีฐานเป็นรูปสามเหลี่ยมและแต่ละด้านมีรูปสามเหลี่ยม สามเหลี่ยมทั้งสามมาบรรจบกันเป็นจุด ดังในรูป
พื้นที่ของจัตุรมุข =(√3)a 2

ตัวอย่าง
รหัสในการหาพื้นที่ของจัตุรมุขใช้ห้องสมุดคณิตศาสตร์เพื่อค้นหาสแควร์และสแควร์รูทของตัวเลขโดยใช้วิธี 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\n");
printf("The side of Tetrahedron is %d \n", a);
area = (sqrt(3)*(a * a));
printf("The area of Tetrahedron is %f \n", area);
return 0;
} ผลลัพธ์
Program to find area and volume of Tetrahedron The side of Tetrahedron is 5 The area of Tetrahedron is 43.301270