Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^2: How to change these small one-liners into Perl6 code?

by ABCXYZ (Novice)
on Dec 23, 2012 at 19:18 UTC ( #1010114=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    If we list all the natural numbers below 10 that are multiples of 3 or
    + 5, we get 3, 5, 6 and 9. The sum of these multiples is 23.
    
    Find the sum of all the multiples of 3 or 5 below 1000.
    ...
    (I generalized this to: 
       below 10**$n for code #1 and #2, 
    or below $N for code #3)
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1010114]
help
Chatterbox?
[LanX]: shmem: but only because it is taught in school
LanX remembers one curriculum about benny and the punishment whe we didn't laugh ...hill
LanX horror
[Discipulus]: in case of doubt freedom

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (8)
As of 2017-04-27 20:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (513 votes). Check out past polls.