in reply to Re: Finding sum of all digits from 1 to 1 million.
in thread Finding sum of all digits from 1 to 1 million.
Sorry, but 10 is not a gidit , its a number, composed of the digits 1 and 0.
so your solution should look alike:
0+9
1+8
2+7
3+6
4+5
which is 45
But anyway, I wouldn't be surprised if another one shows up presenting a "correct" solution of "42" grin
Have a nice day
All decision is left to your taste