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();
}
最新回答 / qq_慕侠5280997
using System;using System.Collections.Generic;using System.Text;namespace projAboveAvg{ class Program { static void Main(string[] args) { string[,] name = new string[,] { { "景珍", "90" }, { "林慧洋", "65" }, { "成蓉", "88" }, { "洪...
2020-04-09
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");
}
}