In this program I have tried to build a triangle pattern which look like this 1 1 12 21 123 321 1234 4321 1234554321