Sunday, 26 February 2012

All the subsets of a set of numbers

Write a program to print all the subset of a set of numbers.
The original set of numbers is read from the user.

Eg :-
input :1 2 3
output :.{NULL,1,2,3,12,13,23,123}

input : 0 1
output :{NULL,0,1,01}

No comments:

Post a Comment