C语言编程,运用结构体

题目内容:
输入n个国家的国名和金牌数,查找指定国名的金牌数。
请按如下框架编写程序。

输入格式:
"How many countries?"
"%d"
"Input names and goldMedals:\n"
"%s%d"
"Input the searching country:"
"%s"
输出格式:
"%s:%d\n"
"Not found!\n"
输入输出样例:
How many countries?3
Input names and goldMedals:
China 10
Japan 5
America 6
Input the searching country:America
America:6

https://blog.csdn.net/wangqingchuan92/article/details/99638763