Driver Program
public static void Main ( String [ ] args ) { int n = 20 ; if ( n == 0 ) Console . Write ( " Minimum ▁ number ▁ of ▁ Steps : ▁ 0 STRNEWLINE Step ▁ sequence : STRNEWLINE 0" ) ; else { List < int > a = find ( n ) ; Console . Write ( " Minimum ▁ number ▁ of ▁ Steps : ▁ " + a . Count + " STRNEWLINE Step ▁ sequence : STRNEWLINE " ) ; foreach ( int i in a ) Console . Write ( i + " ▁ " ) ; } } }