Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- BEGIN {
- total = 0;
- numzeros = 0
- }
- {
- if ($2 == 0) {
- numzeros = numzeros + 1;
- } else {
- total = total + $2;
- }
- }
- END { print total; print numzeros}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement