Given the base length, height, and distance of Octagonal Prism we have to find the Surface Area and Volume of the octagonal prism for the given parameters. The octagonal prism is a solid three-dimensional object having a total of 10 faces, 24 edges, and 16 vertices. The two faces at either end are octagons and the rest of the faces are rectangular.
where a is the base length, h is height and d is the distance of octagonal prism.
Area = 2 * base * distance
Surface area = (2 * Area) + ( 8 * base * height )
Volume = ( Area * height )
Input: h = 2, a = 4, d = 3
Surface Area : 112
Volume : 48
Input: h = 1, a = 6, d = 2
Surface Area : 96
Volume : 24
Surface area: 96 Volume: 24
Don’t stop now and take your learning to the next level. Learn all the important concepts of Data Structures and Algorithms with the help of the most trusted course: DSA Self Paced. Become industry ready at a student-friendly price.
- Program to find volume and surface area of pentagonal prism
- Surface Area and Volume of Hexagonal Prism
- Program to calculate the Surface Area of a Triangular Prism
- Calculate Volume, Curved Surface Area and Total Surface Area Of Cylinder
- Program for Volume and Surface Area of Cuboid
- Program for Volume and Surface Area of Cube
- Program for Volume and Surface area of Frustum of Cone
- Program to calculate Volume and Surface area of Hemisphere
- Program to find the Volume of a Triangular Prism
- Calculate volume and surface area of a cone
- Calculate volume and surface area of Torus
- Calculate Volume and Surface area Of Sphere
- Program to find the surface area of the square pyramid
- Program to find the Area and Volume of Icosahedron
- Program for Surface area of Dodecahedron
- Program for Surface Area of Octahedron
- Find the Surface area of a 3D figure
- Program to calculate area and volume of a Tetrahedron
- Find maximum volume of a cuboid from the given perimeter and area
- Program to find the Volume of an irregular tetrahedron
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.
Improved By : AnkitRai01