Program for Volume and Surface Area of Cuboid | Utility function ; Driver function
function areaCuboid ( l , h , w ) { return ( l * h * w ) ; } function surfaceAreaCuboid ( l , h , w ) { return ( 2 * l * w + 2 * w * h + 2 * l * h ) ; } let l = 1 ; let h = 5 ; let w = 7 ; document . write ( " " + areaCuboid ( l , h , w ) + " " ) ; document . write ( " " + surfaceAreaCuboid ( l , h , w ) + " " ) ;