using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
int[,] x = new int[11, 11];
x[0, 0] = 1;
for (int i = 1; i < 11; i++)
{
x[i, 0] = 1;
for (int j = 1; j <= i; j++)
{
x[i, j] = x[i - 1, j - 1] + x[i - 1, j];
x[i, i] = 1;
}
}
for (int i = 0; i < 11; i++)
{
for (int j = 0; j <= i; j++)
{
Console.Write(x[i, j]);
}
Console.WriteLine();
}
Console.Read();
}
}
}
//A25龙正红<img src="https://img-blog.csdn.net/20141125230449327?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvbHpoYTI1/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center" alt="" />