Write a c++ program to create the following patterns

I have tried a lot but have not come to a conclusion Please help me 1 22 3333 444444