哪里有問題嗎?
string[] names = new string[]{"吳松","錢東宇","伏晨","陳陸","周蕊","林日鵬","何昆","關欣"};
? ? ? ? ? ? ?int[] scores = new int[]{89,90,98,56,60,91,93,85};
? ? ? ? ? ? int t=0;
? ? ? ? ? ? int max=scores[0];
? ? ? ? ? ? for(int i=1;i<scores.Length;i++)
? ? ? ? ? ? {
? ? ? ? ? ? ? ? if (max < scores[i])
? ? ? ? ? ? ? ? {
? ? ? ? ? ? ? ? ? ? max = scores[i];
? ? ? ? ? ? ? ? ? ? t=i;
? ? ? ? ? ? ? ? }
? ? ? ? ? ? }
? ? ? ? ? ? Console.WriteLine("分數最高的是" + names[t]+",分數是"+max);
2017-03-30
把最下面一行的分數是前面的逗號用中文逗號,