C program to print combination of 1 2 3

C program to print combination of 1 2 3

Output:

123
23
13
3
12
2
1

Implementation: