The countries of OPEC in 2005 are Algeria, Libya, Nigeria, Iran, Iraq, Kuwait, Qatar, Saudi Arabia, United Arab Emerates, Venezuela and Indonesia.
For each of the countries of OPEC, print the name and the GDP.
We can use an if statement to ensure that only some
countries are printed. Do not change the opec
list for this question.
For each of the countries of OPEC, print the name and the GDP - only for those OPEC members in the Middle East.
For each of the countries of OPEC, print the name, the region, the per capita GDP and the GDP in billions.
Use 1000000000L for 1 billion (the L means long)
The per capita GDP is the GDP divided by the population.
Print the name and area of every country in South America.
You may use the following format string to print the details:
"%-21s%9d\n"