static void Main(string[] args)
{
int i, j, k,n =0;
for (i = 0; i <10; i++)
{
for (j = 0 ; j < 10 - i; j++)
{
Console.Write(" ");
}
for (k = i ; k < i+ n; k++)
{
Console.Write((k)%10);
Console.Write(" ");
}
for (j = k-1; j > n ; j--)
{
Console.Write((j-1) % 10);
Console.Write(" ");
}
Console.WriteLine("");
n++;
}
}