Sum of all the numbers present at given level in Pascal 's triangle | C # implementation of the approach ; Function to find sum of numbers at Lth level in Pascals Triangle ; Driver Code
using System ; class GFG { static int sum ( int h ) { return ( int ) Math . Pow ( 2 , h - 1 ) ; } public static void Main ( ) { int L = 3 ; Console . WriteLine ( sum ( L ) ) ; } }