C program to print the following pattern: 1 01 101 0101

C program to print the following pattern:


1
01
101
0101
Solution: