PHP:Accumulate over a File with Multiple Variables
In these examples we accumulate more than one value. We still only need one loop - we just do more work in each.
Calculate the average population size for the countries of the world.
Print the total population by the number of countries.
Is 3 million the median?
Show the number of countries with a population more than 3000000
Show the number of countries with a population less than 3000000