mirror of
https://github.com/GnoConsortium/gno.git
synced 2024-06-07 14:31:23 +00:00
ddb82cb2e0
Maybe someday I'll become adept at using cvs...
8 lines
246 B
Awk
8 lines
246 B
Awk
$2 > 6 { n = n + 1; pay = pay + $2 * $3 }
|
|
END { if (n > 0)
|
|
print n, "employees, total pay is", pay,
|
|
"average pay is", pay/n
|
|
else
|
|
print "no employees are paid more than $6/hour"
|
|
}
|