Home Project Code base Subsets

Subsets

Posted on May 10, 2018 by Edit

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

Tags : c
This website is made possible by displaying online advertisements to our visitors.
Please consider supporting by disabling your ad blocker.

Get new posts by email:
loading comments...
© 2023 Shivaji Varma. Made in India.