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'
In reply to Re: Counting positive numbers
by JavaFan
in thread Counting positive numbers
by Young Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |