Pathologically Eclectic Rubbish Lister | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
I confused by the term 'DECIMAL DIGITS'. In the following sequence, I would count the number of decimal digits as: In those 3 numbers, we have a total of 9 digits. So if I use this code: The result printed as 5888896, which is not 27000001. So how is the term 'DECIMAL DIGITS' defined? I think that is key to solving for the "real" answer. Regards...Ed "Well done is better than well said." - Benjamin Franklin In reply to Re: Finding sum of all digits from 1 to 1 million.
by flexvault
|
|