Calculate the total area of the world.
This time we add to the accumulator each time. We can use either of the statements below:
acc = acc + area;
acc += area;
Calculate the total population of the world.
The answer - at a little over 6 billion will be too large for
and int. Use a long instead.
Calculate the total GDP of the countries of Africa.
Calculate the total GDP of the western world. Include the regions "North America", "Europe" and "Oceania" as the western world.