C program to print combination of 4 digits number

C program to print combination of 4 digits number

Output:

Enter the 4-digit number: 1234
1234
234
134
34
124
24
14
4
123
23
13
3
12
2
1


Implementation: