- Trending Categories
- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP

- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who

The surface area of any figure is the total area that it's surface cover.

A hexagonal prism is a three-dimensional figure that has a hexagon at both its ends. exam on prism looks like -

In mathematics, Hexagonal prism is defined as three dimensional figure with 8 faces, 18 edges, 12 vertices.

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

- Related Questions & Answers
- Program for Volume and Surface Area of Cube in C++
- Program for Volume and Surface Area of Cuboid in C++
- Program for Volume and Surface area of Frustum of Cone in C++
- How to find Volume and Surface Area of a Sphere using C#?
- Program for Surface area of Dodecahedron in C++
- Program for Surface Area of Octahedron in C++
- Program to find the Area and Volume of Icosahedron in C++
- Surface Area of 3D Shapes in Python
- Program to calculate area and volume of a Tetrahedron
- Find maximum volume of a cuboid from the given perimeter and area in C++
- Find the Surface area of a 3D figure in Python
- Find the area of a circle in C programming.
- C Program for Hexagonal Pattern
- How to calculate the volume of a sphere using C programming language?
- Program for volume of Pyramid in C++

Advertisements