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

您可能感興趣的試卷

你可能感興趣的試題