Advertisement
leonardo_aly7

csi2

Jan 26th, 2012
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.54 KB | None | 0 0
  1. int main(){
  2. int i,j,k,l,m,n = 6;
  3. char s[32] = "abcdef";
  4.  
  5.     for (i=0; i < n; i++){
  6.         for(j =i; j< n ;j++){
  7.             if (i==j)continue;
  8.             for(k =j; k< n ;k++){
  9.                 if (j==k)continue;
  10.                 for(l =k; l< n ;l++){
  11.                     if(k==l)continue;
  12.                     for(m =l; m< n ;m++){
  13.                         if (l==m)continue;
  14.                         printf("%c%c%c%c%c\n",s[i],s[j],s[k],s[l],s[m]);
  15.                     }
  16.                 }
  17.             }
  18.         }
  19.     }
  20. return 0;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement