class PascalTriangle
{
public static void main(String[] args)
{
int row = 5;
int number;
System.out.println("Pascal Triangle:");
for(int i=0;i<row;i++)
{
for(int k=row; k>i; k--)
{
System.out.print(" ");
}
number = 1;
for(int j=0;j<=i;j++)
{
System.out.print(number+ " ");
number = number * (i - j) / (j + 1);
}
System.out.println();
}
}
}