Subsets
Program to print all subsets of given set of letters.
Input
ENTER THE SIZE OF THE ARRAY: 4 ENTER THE ELEMENTS INTO THE ARRAY: a b c d
Output
All combinations: { } { d } { c } { c d } { b } { b d } { b c } { b c d } { a } { a d } { a c } { a c d } { a b } { a b d } { a b c } { a b c d }
C
-
Previous -
Next
This website is made possible by displaying online advertisements to our visitors.
Please consider supporting by disabling your ad blocker.
Please consider supporting by disabling your ad blocker.
loading comments...