int avg;int sum;string name = "";for (int i = 0; i < score.Length; i++) {sum += score[i];} avg = sum / score.Length;for (int j = 0; j <score.Length; j++) { if (score[j] > avg){name += names[j] + " "; } } Console.WriteLine("平均分是" + avg + "高于平均分的有:\n" + name); Console.ReadLine();
Console.WriteLine(true||false);//输出True
Console.WriteLine(true && false);//输出False
Console.WriteLine(!false);//输出True
Console.WriteLine(true && false);//输出False
Console.WriteLine(!false);//输出True
2016-01-13