Don't ask to ask, just ask | |
PerlMonks |
Re: Finding sum of all digits from 1 to 1 million.by runrig (Abbot) |
on Jan 24, 2002 at 00:38 UTC ( [id://141017]=note: print w/replies, xml ) | Need Help?? |
..FROM ONE TO ONE MILLION INCLUSIVE
Your program has: You're missing 1,000,000 and so are off by one. Here's another way (which is still the long way, BTW):
In Section
Seekers of Perl Wisdom
|
|