Driver Code
public static void Main ( ) { int n = 13 ; Console . WriteLine ( countDigitOne ( n ) ) ; n = 113 ; Console . WriteLine ( countDigitOne ( n ) ) ; n = 205 ; Console . WriteLine ( countDigitOne ( n ) ) ; } }