13 lines
177 B
Plaintext
13 lines
177 B
Plaintext
|
{
|
||
|
pay = (pay + ($2 * $3));
|
||
|
}
|
||
|
|
||
|
END {
|
||
|
print NR,"employees";
|
||
|
print "total pay is",pay;
|
||
|
print "average pay is",(pay / NR);
|
||
|
}
|
||
|
6 employees
|
||
|
total pay is 337.5
|
||
|
average pay is 56.25
|