Sum of all the numbers present at given level in Modified Pascal ’ s triangle | C # program to calculate sum of all the numbers present at given level in an Modified Pascal 's triangle ; Function to calculate sum ; Driver Code
using System ; class GFG { static void ans ( int n ) { if ( n == 1 ) Console . WriteLine ( "1" ) ; else Console . WriteLine ( "0" ) ; } public static void Main ( String [ ] args ) { int n = 2 ; ans ( n ) ; } }