A prism that has 5 rectangular faces and 2 parallel pentagonal bases is a pentagonal prism. So you are given the apothem length(a), base length(b) and height(h) of the pentagonal prism. you have to find the surface area and the volume of the Pentagonal Prism.
Input : a=3, b=5, h=6 Output :surface area=225, volume=225 Input : a=2, b=3, h=5 Output :surface area=105, volume=75
In this figure,
a– apothem length of the Pentagonal Prism.
b– base length of the Pentagonal Prism.
h– height of the Pentagonal Prism.
Formulas:Below are the formulas for calculating the surface area and the volume of the Pythagonal Prism.
surface area= 180, volume= 52.5
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 Surface Area and Volume of Octagonal 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
- Minimum number of blocks required to form Hollow Rectangular Prism
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. 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.