Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Finding sum of all digits from 1 to 1 million.

by pvaldes (Chaplain)
on Jan 30, 2013 at 18:55 UTC ( #1016136=note: print w/ replies, xml ) Need Help??


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 inclusive

mhhh, I don't get it ... the answer is?:

print "0";

integers don't have decimals

Updated: Forget this, I was not understanding the question, obviously...


Comment on Re: Finding sum of all digits from 1 to 1 million.
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1016136]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (12)
As of 2014-07-28 20:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (209 votes), past polls