using System;
using System.Collections.Generic;
using System.Text;
namespace ConsoleApplication4
{
class Program
{
static void Main(string[] args)
{
{
int x, y;
int[,] a = new int[20, 20];
for (x = 0; x <= 5; x++)
{
for (y = 0; y <= x; y++)
{
if (x == y || y == 0)
a[x, y] = 1;
else
a[x, y] = a[x - 1, y - 1] + a[x - 1, y];
Console.Write(" "+a[ x, y] );
}
Console.WriteLine();
}
Console.ReadLine();
}
}
}
}