Driver function .
public static void Main ( String [ ] args ) { int n = 3 ; List < int > code = grayCodes ( n ) ; for ( int i = 0 ; i < code . Count ; i ++ ) Console . Write ( code [ i ] + " STRNEWLINE " ) ; } }