Sum of all the numbers present at given level in Pascal 's triangle | C ++ implementation of the above approach ; Function to find sum of numbers at Lth level in Pascals Triangle ; Driver Code
#include <bits/stdc++.h> NEW_LINE using namespace std ; int sum ( int h ) { return pow ( 2 , h - 1 ) ; } int main ( ) { int L = 3 ; cout << sum ( L ) ; return 0 ; }