显示:
代码:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace NumberSort
{
class Program
{
static void Main(string[] args)
{
int i, j;
for (i = 1; i <= 6; i++) {
for (j = 1; j <= i; j++) {
Console.Write("{0}",j);
}
Console.WriteLine();
}
Console.ReadLine();
}
}
}