The sum of all the digits used to write the whole numbers 10 through 13 is 1+0+1+1+1+2+1+3 = 10. What is the sum of all the digits used to write the whole numbers 1 through 170, inclusive?
Total Num = 402 Total Sum =1503