#include<stdio.h>
#include<conio.h>
#include<iostream.h>
#include<string.h>
int x[4]={0};
char c[10];
int subset(int start,int finish);
void main()
{
clrscr();
strcpy(c,"abc");
subset(0,3);
}
int subset(int start,int finish)
{ int i;
if(start==finish)
{
cout<<"{";
for(i=0;i<finish;i++)
if(x==1)
cout<<c<<",";
cout<<"}"<<endl;
}
else
{x[start]=0;
subset(start+1,finish);
x[start]=1;
subset(start+1,finish);
}
}