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
Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.
- Program to find volume and surface area of pentagonal prism
- Calculate Volume, Curved Surface Area and Total Surface Area Of Cylinder
- Surface Area and Volume of Hexagonal Prism
- Program to calculate the Surface Area of a Triangular Prism
- Program for Volume and Surface Area of Cube
- Program for Volume and Surface Area of Cuboid
- Program to calculate Volume and Surface area of Hemisphere
- Program for Volume and Surface area of Frustum of Cone
- Program to find the Volume of a Triangular Prism
- Calculate Volume and Surface area Of Sphere
- Calculate volume and surface area of a cone
- Calculate volume and surface area of Torus
- Program to find the surface area of the square pyramid
- Program to find the Area and Volume of Icosahedron
- Program for Surface Area of Octahedron
- Program for Surface area of Dodecahedron
- 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 check if N is a Centered Octagonal Number
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