Hello to all of you.Here is the simple code for finding combination of three number.

Code:void find() { int a,b,c,x,y,z,s; scanf("%d%d%d",&a,&b,&c); if(a>b&&a>c) s=a; else if(b>c) s=b; else s=c; for(x=1;x<=s;x++) { for(y=1;y<=s;y++) { for(z=1;z<=s;z++) { if(z==a||z==b||z==c) { if(y==a||y==b||y==c) { if(x==a||x==b||x==c) { if(!(x==y||x==z||y==z)) printf("%d%d%d\n",x,y,z); } } } } } }