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
int. Use a
Total GDP of Africa
Calculate the total GDP of the countries of Africa.
Total GDP of the 'West'.
Calculate the total GDP of the western world. Include the regions "North America", "Europe" and "Oceania" as the western world.