Printing all subsets of {1,2,3,...n} without using array or loop
Given a natural number n, print all the subsets of the set [Tex]\{1, 2, 3, ..., n\} [/Tex]without using any array or loop (only the use of recursion is allowed).Examples: Input : n = 4 Output : { 1 2 3 4 } { 1 2 3 } { 1 2 4 } { 1 2 } { 1 3 4 } { 1 3 } { 1 4 } { 1 } { 2 3 4 } { 2 3 } { 2 4 } { 2 } {