Write a program that reads the following list of countries and their respective capital city into 2 separate one-dimensional list. Create a dictionary out of both of these lists. The program should then accept the name of a country as input and give the name of the corresponding capital as output. The program should be designed to give an error message when a capital city is asked for a country whose name is not in the list. To stop the program “end” should be entered as input
Answers
Answered by
0
Answer:
Write an interactive, menu-driven program C program that will accept the name of a country as input and display the corresponding capital, and vice versa. Design the program so that it executes repeatedly, until the word End is entered as input. Please add more countries to the list
Similar questions