odd [ i ] , even [ i ] arrays represent count of numbers starting with digit i for any length j
int odd [ 10 ] , even [ 10 ] ; int i = 0 , j = 0 , useOdd = 0 , totalCount = 0 ; for ( i = 0 ; i <= 9 ; i ++ )