Driver code
public static void main ( String [ ] args ) throws java . lang . Exception { double a = 2 , b = 5 , e = 5 , h = 6 ; System . out . print ( " Volume ▁ = ▁ " + volumeRec ( a , b , e , h ) ) ; } }