Sum of all the numbers present at given level in Pascal 's triangle | Java implementation of the approach ; Function to find sum of numbers at Lth level in Pascals Triangle ; Driver Code
class GFG { static int sum ( int h ) { return ( int ) Math . pow ( 2 , h - 1 ) ; } public static void main ( String [ ] args ) { int L = 3 ; System . out . println ( sum ( L ) ) ; } }