text: Program to find the Volume of a Triangular Prism | C # program to find the volume of the triangular prism ; function to find the Volume of triangular prism ; formula to find Volume ; Driver code ; function calling
code: using System ; class GFG { static float findVolume ( float l , float b , float h ) { float volume = ( l * b * h ) / 2 ; return volume ; } static public void Main ( ) { float l = 18 , b = 12 , h = 9 ; Console . WriteLine ( " Volume ▁ of ▁ triangular ▁ prism : ▁ " + findVolume ( l , b , h ) ) ; } }