<span style="font-family:宋体;font-size:12pt;">输入</span><span style="font-size:12pt;">n</span><span style="font-family:宋体;font-size:12pt;">个同学的成绩,求他们的总成绩和平均成绩!</span><span style="font-size:12pt;"></span>
<span style="font-family:宋体;font-size:12pt;">输入格式:</span><span style="font-size:12pt;"></span>
<span style="font-family:宋体;font-size:12pt;">第一行,输入一个整数</span><span style="font-size:12pt;">n<span> </span>(2<n<100)</span>
<span style="font-family:宋体;font-size:12pt;">第二行,共</span><span style="font-size:12pt;">n</span><span style="font-family:宋体;font-size:12pt;">个整数</span><span style="font-size:12pt;">a</span><span style="font-family:宋体;font-size:12pt;">。</span><span style="font-size:12pt;"><span> </span>(0<=a<=100)</span>
<span style="font-family:宋体;font-size:12pt;">输出格式:</span><span style="font-size:12pt;"></span>
<span style="font-family:宋体;font-size:12pt;">输出有</span><span style="font-size:12pt;">2</span><span style="font-family:宋体;font-size:12pt;">行,</span>
<span style="font-family:宋体;font-size:12pt;">第一是总分,</span>
<span style="font-family:宋体;font-size:12pt;">第二行是平均分。(保留</span><span style="font-size:12pt;">1</span><span style="font-family:宋体;font-size:12pt;">位小数)</span><span style="font-size:12pt;"></span>
<span style="font-size:12pt;"></span>
<span style="font-family:宋体;font-size:12pt;">输入</span><span style="font-family:宋体;font-size:12pt;">样例:<span></span></span>
<span style="font-size:12pt;">5</span>
<span style="font-size:12pt;">100 90 84 100 100</span>
<span style="font-family:宋体;font-size:12pt;">输出</span><span style="font-family:宋体;font-size:12pt;">样例:</span><span style="font-size:12pt;"></span>
<span style="font-size:12pt;">474</span>
<span style="font-size:12pt;">94.8</span>
5 100 90 84 100 100
474 94.8
四年级题目-循环语句练习题