using System;
class AverageofScore
{
public static void Main()
{
int[,] student_score=new int [4,5];
int temp;
for(int i=0;i<=3;i++)
{
temp=0;
for(int j=0;j<=4;j++)
{
Console.WriteLine ("請(qǐng)輸入第{0}個(gè)學(xué)生的第{1}門(mén)功課:",i+1,j+1);
student_score[i,j]=int.Parse (Console.ReadLine ());
temp+=student_score[i,j];
}
Console.WriteLine ("This student's average of score is"+temp/5);
}
}
}
本站僅提供存儲(chǔ)服務(wù),所有內(nèi)容均由用戶(hù)發(fā)布,如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請(qǐng)
點(diǎn)擊舉報(bào)。