Program to find volume and surface area of pentagonal prism | function for surface area ; function for VOlume ; Driver Code
< ? php function surfaceArea ( $ a , $ b , $ h ) { return 5 * $ a * $ b + 5 * $ b * $ h ; } function volume ( $ b , $ h ) { return ( 5 * $ b * $ h ) / 2 ; } $ a = 5 ; $ b = 3 ; $ h = 7 ; echo " surface ▁ area ▁ = ▁ " , surfaceArea ( $ a , $ b , $ h ) , " , ▁ " ; echo " volume = " ? >