10 lines
192 B
Plaintext
10 lines
192 B
Plaintext
|
($4 == "Asia") {
|
||
|
pop = (pop + $3);
|
||
|
n = (n + 1);
|
||
|
}
|
||
|
|
||
|
END {
|
||
|
print "Total population of the",n,"Asian countries is",pop,"million.";
|
||
|
}
|
||
|
Total population of the 4 Asian countries is 2173 million.
|