Pascal triangle printing wrong patttern

My output
1
1 1
1 2 1
1 3 3 1

Expected output
Untitled