阅读背景:

将成分数量读入数组并报告所需成分的数量

来源:互联网 

Your grandparents gave you a fantastic cooking recipe but you can never remember how much of each ingredient you have to use! There are 10 ingredients in the recipe and the quantities needed for each of them are given as input (in grams). Your program must read 10 integers (the quantities needed for each of the ingredients, in order) and store them in an array. It should then read an integer which represents an ingredient's ID number (between 0 and 9), and output the corresponding quantity.Your grandparents gave you a fantastic cooking




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: