{
for (int y = 1; y <= 7; y++)
{
for (int x = 1; x <= 7; x++)
{
if(x > y)
break;
Console.Write(x);
}
Console.WriteLine();
for (int y = 1; y <= 7; y++)
{
for (int x = 1; x <= 7; x++)
{
if(x > y)
break;
Console.Write(x);
}
Console.WriteLine();
2018-04-27
int[] score = new int[] {89,39,100,51,94,65,70 };//分数
Console.Write("不及格的有:");
for (int i = 0; i < score.Length ; i++)
{
if( score[i] < 60 )//筛选条件
Console.Write(score[i]+",");
Console.Write("不及格的有:");
for (int i = 0; i < score.Length ; i++)
{
if( score[i] < 60 )//筛选条件
Console.Write(score[i]+",");
2018-04-25