You are on page 1of 1

eg consider the following word "world" now to generate perm of three digits with out repetition of letter for(i=0;i<len;i++)

{ for(j=0;j<len;j++) { for(k=0;k<len;k++) { if((i==j==k)||(i==j)||(j==k)||(i==k)) continue; else print str[i] str[j] str[k]; } }

You might also like