in reply to Counting positive numbers
As for an example of a short program, I may go for:
But that's probably not the shortest.perl -nE'/-/ or$x+=$_}{say$x'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Counting positive numbers
by Corion (Patriarch) on Jul 05, 2010 at 12:18 UTC | |
by JavaFan (Canon) on Jul 05, 2010 at 12:27 UTC |