for (int x = 0; x < 7; x++)
{
for (int y = 0; y < 7; y++)
{
if (x == y || (x + y) == 6) { Console.Write("o"); }
else { Console.Write("."); }
}
Console.WriteLine();
}
{
for (int y = 0; y < 7; y++)
{
if (x == y || (x + y) == 6) { Console.Write("o"); }
else { Console.Write("."); }
}
Console.WriteLine();
}
Console.WriteLine("平均分是:{0}",avg);
Console.Write("高于平均分的有:\n");
for (int s = 0;s < score.Length;s++) {
if (score[s] > avg) {
index = s;
Console.Write(name[index] + "\t");
}
}
Console.Write("高于平均分的有:\n");
for (int s = 0;s < score.Length;s++) {
if (score[s] > avg) {
index = s;
Console.Write(name[index] + "\t");
}
}