Sum of all the numbers present at given level in Modified Pascal ’ s triangle | Function to calculate sum ; Driver Code
function ans ( n ) { if ( n == 1 ) document . write ( " " ) ; else document . write ( " " ) ; } var n = 2 ; ans ( n ) ;