問答題

【簡答題】用函數(shù)編程統(tǒng)計平均成績。要求在主函數(shù)中輸入學(xué)生成績,輸入負(fù)數(shù)時,結(jié)束輸入,調(diào)用子函數(shù)Average()計算平均成績,并輸出結(jié)果。函數(shù)原型:intAverage(intscore[],intn)要求輸入提示信息為:Inputscore:輸出格式要求為:Totalstudentsare%d\nAveragescoreis%d\n

答案:

題目列表

你可能感興趣的試題

微信掃碼免費搜題