พื้นที่ผิวของตัวเลขใดๆ คือพื้นที่ทั้งหมดที่ครอบคลุมพื้นผิวนั้น
ปริซึมหกเหลี่ยมเป็นรูปสามมิติที่มีปลายหกเหลี่ยมทั้งสองด้าน ข้อสอบปริซึมจะประมาณนี้ -
ในวิชาคณิตศาสตร์ ปริซึมหกเหลี่ยมถูกกำหนดให้เป็นตัวเลขสามมิติที่มี 8 หน้า 18 ขอบ 12 จุดยอด

Surface Area = 3ah + 3√3*(a2) Volume = (3√3/2)a2h
ตัวอย่าง
#include <stdio.h>
#include<math.h>
int main() {
float a = 5, h = 10;
//Logic to find the area of hexagonal prism
float Area;
Area = 6 * a * h + 3 * sqrt(3) * a * a;
printf("Surface Area: %f\n",Area);
//Logic to find the Volume of hexagonal prism
float Volume;
Volume = 3 * sqrt(3) * a * a * h / 2;
printf("Volume: %f\n",Volume);
return 0;
} ผลลัพธ์
Surface Area: 429.903809 Volume: 649.519043