The sum of all the digits used in writing the positive integers from 1 to 9 is 45. What is the sum of all the digits used in writing all the positive integers from 1 to 99?
Details and assumptions
If a digit is used multiple times, you should add them up separately.
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
Sum of digits from 1 to 9 is 4 5
This will come 1 0 times ( sum of all the units digits)
Sum of the tens digits from 1 0 to 1 9 = 1 0
Similarly we would get the sum of tens digits as 2 0 , 3 0 , 4 0 . . . . . 9 0
The total sum would be ( 4 5 × 1 0 ) + ( 1 0 + 2 0 + 3 0 . . . . . . . . . . 9 0 )
= 4 5 0 + 4 5 0 = 9 0 0