모든 그림의 표면적은 표면을 덮는 전체 면적입니다.
육각기둥은 양쪽 끝에 육각형이 있는 3차원 도형입니다. 프리즘에 대한 시험은 다음과 같습니다. -
수학에서 육각기둥은 8개의 면, 18개의 모서리, 12개의 꼭짓점을 가진 3차원 도형으로 정의됩니다.

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