in reply to Finding sum of all digits from 1 to 1 million.
FIND THE SUM OF ALL DECIMAL DIGITS APPEARING IN THE NATURAL NUMBERS FROM ONE TO ONE MILLION INCLUSIVEOkay... "all decimal digits." Let's be systematic about this...
The rest, all the way up to a million are just repetitions of the ones we've seen so far.
So the answer is 45.
|
|---|