text: Program to find the Volume of a Triangular Prism | CPP 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: #include <bits/stdc++.h> NEW_LINE using namespace std ; float findVolume ( float l , float b , float h ) { float volume = ( l * b * h ) / 2 ; return volume ; } int main ( ) { float l = 18 , b = 12 , h = 9 ; cout << " Volume ▁ of ▁ triangular ▁ prism : ▁ " << findVolume ( l , b , h ) ; return 0 ; }