+1\r463).\r!\r"#$()[\?n]^_1-n#`a5?HIb8?cd\refgch\r----------------------------------------------------------*/\r#include<stdio.h>\r#include<stdlib.h>\r#defineMAXSIZE20EvaluationWarning:ThedocumentwascreatedwithSpire.PDFfor.NET.\r#defineLOOP1\rvoidmain(void)\rintset[MAXSIZE];\rintn,i;\rintposition;\rcharline[100];\rprintf(n\nAllPossibleSubsetsGenerationbyLexicalOrder'*);\rprintf("\n=====================================,');\rprintf("\n\nNumberofElementsintheSetW>”);\rgets(line);\rn=atoi(line);\rprintf("\n{},f);\rposition=0;\rset[position]=1;\rwhile(LOOP)\rprintf(n\n{%d",);\rfor(i=1;i<=position;i++)\rprintf(n,%d'\set[i]);\rprintfC1}");\rif(set[position]<n)\rsetlJ=set[positionj+1;\rposition++;\r)\relseif(position!=0)\rsetL-position]++;\relse\r)\r)\r$\r[1]set[0]\r[2]position+1\r[3]break