Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int main(){
- int i,j,k,l,m,n = 6;
- char s[32] = "abcdef";
- for (i=0; i < n; i++){
- for(j =i; j< n ;j++){
- if (i==j)continue;
- for(k =j; k< n ;k++){
- if (j==k)continue;
- for(l =k; l< n ;l++){
- if(k==l)continue;
- for(m =l; m< n ;m++){
- if (l==m)continue;
- printf("%c%c%c%c%c\n",s[i],s[j],s[k],s[l],s[m]);
- }
- }
- }
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement