wmi-parprog/04_AWK/4.awk
2024-03-21 12:10:49 +01:00

16 lines
114 B
Awk

BEGIN {
sum = 0.0;
}
{
if ($2 > 40) {
print $1;
}
sum += $2;
}
END {
print "sum of population", sum;
}