using System;
using System.Collections.Generic;
using System.Text;
namespace Test
{
class Program
{
static void Main(String[]args)
{
Console.WriteLine("今日事,今日毕。");
}
}
}
using System.Collections.Generic;
using System.Text;
namespace Test
{
class Program
{
static void Main(String[]args)
{
Console.WriteLine("今日事,今日毕。");
}
}
}
2018-05-25
for (int y = 1; y <= 7; y++)
{
for (int x = 1; x <= 7; x++)
{
if(x<=y)
Console.Write(x);
}
Console.WriteLine();//换行
}
{
for (int x = 1; x <= 7; x++)
{
if(x<=y)
Console.Write(x);
}
Console.WriteLine();//换行
}
2018-05-21
namespace Test
{
class Program
{
static void Main(string[] args)
{
for(int x=1;x<=5;x++)
{
if(x%2==0)
//添加关键字break或continue
Console.Write(x);
}
}
}
}
{
class Program
{
static void Main(string[] args)
{
for(int x=1;x<=5;x++)
{
if(x%2==0)
//添加关键字break或continue
Console.Write(x);
}
}
}
}
2018-05-21