Create two arrays of the same size to contain strings. Now in a loop
- ask user the names of a country and put that country into the first
array beginning at the start position of the array. Then it will ask the
user for the name of that country's capital and put that into the
second array matched by the position of the country in the first
array. Your loop should run as many times as the size of the first
array.
In the same program write a function that will accept the two arrays
and use a loop to print country name and capital name. In the
loop, print out the country name and the capital name side by side
one country-capital pair on each line.
Now call that function from your main function.use c or c++
Answers
Answered by
1
Answer:
xoyxyoxpucuv8vhhhyujyt uhhhh have 9
ix lyooyylhcik oo. o o o ovicucuf7fucic8ci kphhhhh
Answered by
0
Answer:
Explanation:
Now in a loop - ask user the names of a country and put that country into the first array beginning at the start position of the array. Then it will ask the user for the name of that country's capital and put that into the second array matched by the position of the country in the first array. Your loop should run as many times as the size of the first array. in c programming
Similar questions