If Tutorial

From Progzoo
Jump to: navigation, search
<< Flags | Functions >>

In these tutorials you practice simple printing and the if statement.

Your code gets called over and over - each time with the details of a different country. Using the values name, region, area, population and gdp you must decide which countries to print and which to skip.

World factbook
nameregionareapopgdp
AfghanistanAsia652225260000000
AlbaniaEurope2872832000006656000000
AlgeriaMiddle East24000003290000075012000000
AndorraEurope468640000
AngolaAfrica12500001450000014935000000
Antigua and BarbudaAmericas44277000770000000
ArgentinaSouth America280000039300000146196000000
ArmeniaEurope2974330000003360000000
AustraliaAsia-Pacific770000020300000546070000000
AustriaEurope838718100000261630000000
AzerbaijanEurope8660085000000
BahamasAmericas139393210004789320000
BahrainMiddle East7177540009357140000
BangladeshAsia14399815260000067144000000
BarbadosAmericas4302720002518720000
BelarusEurope207595980000020776000000
BelgiumEurope3052810300000319609000000
BelizeAmericas229652660000
BeninAfrica11262271000003763000000
BhutanAsia3836424000001824000000
BoliviaAmericas110000091000000
Bosnia-HercegovinaEurope5112942000008568000000
BotswanaAfrica58173018000007812000000
BrazilAmericas8550000182800000564852000000
BruneiAsia-Pacific57653740000
BulgariaEurope110994780000021372000000
Burkina FasoAfrica274200138000004968000000
BurmaAsia-Pacific676552507000000
BurundiAfrica2781673000000
CambodiaAsia-Pacific181035148000004736000000