country name: character
number of athletes: integer
number of gold medals won: integer
number of silver medals won: integer
number of bronze medals won: integer
(b) Write loop that will output each country name and total number of medals won.
You put numberOfAthletes - I don't need the number of athletes, all I need is a loop to output Country Name & Total Number of Medals Won for EACH country.
Yes, but you need to know how many there are, if you want to print them all. The number isn't printed; it's just used as the loop bound. It means it will execute the statement "numberOfAthletes" times.