A prism that has 5 rectangular faces and 2 parallel pentagonal bases is a pentagonal prism. So friend are given the apothem length(a), basic length(b) and height(h) of the pentagonal prism. You have to discover the surface area and also the volume the the Pentagonal Prism.
You are watching: How to find the area of a pentagonal prism
Examples:Input : a=3, b=5, h=6Output :surface area=225, volume=225Input : a=2, b=3, h=5Output :surface area=105, volume=75
Attention reader! all those that say programming isn"t for kids, simply haven"t met the ideal mentors yet. Join theDemo class for first Step to Coding Course,specificallydesigned because that students of class 8 to 12.The college student will get to learn an ext about the people of programming in thesefree classes which will definitely aid them in do a way career selection in the future.
In this figure,a– apothem length of the Pentagonal Prism.b– base size of the Pentagonal Prism.
See more: I Heard That Our School Is Getting A New Mascot For Pocatello High School
h– height of the Pentagonal Prism.Formulas:Below room the formulas because that calculating the surface area and also the volume that the Pythagonal Prism.
Number of rectangles in N*M gridProgram because that distance in between two points on earthLine trimming | collection 1 (Cohen–Sutherland Algorithm)Convex Hull | set 1 (Jarvis"s Algorithm or Wrapping)Convex Hull | set 2 (Graham Scan)
Python DictionaryArrays in C/C++Inheritance in C++Reverse a cable in JavaObject Oriented Programming in C++