using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication8
{
class Program
{
static void Main(string[] args)
{
int i, j;
int [,]b = new int[11,11];
for(i=0;i<11;i++)
{
b[i,i] = 1;
b[i,0] = 1;
}
for(i = 2;i<11;i++)
for(j=1;j<=i-1;j++)
b[i,j] = b[i-1,j-1] +b[i-1,j];
for (i = 0; i < 11; i++)
{
for (j = 0; j <= i; j++)
Console.Write("{0,5}",b[i, j]);
Console.WriteLine();
}
Console.Read();
}
}
}