Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Counting positive numbers

by Corion (Pope)
on Jun 29, 2010 at 12:48 UTC ( #847116=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
              #1234567890123456789012345678901234567890
    perl -wle "$a=<>;($x=<>)>0?$_+=$x:0 while$a--;print
    
  2. or download this
              #123456789012345678901234
    perl -wle "print 0+map{1..<>}2..<>"
    
  3. or download this
              #123456789012345678901234
    perl -wle "<>;print 0+map{1..<>}<>"
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://847116]
help
Chatterbox?
[Happy-the-monk]: LanX: for what? Being more successful selling old stories than her antecedents?
[Happy-the-monk]: (now all you need to do is answer: "no, for money." ;-))

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2018-04-20 11:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?