Facebook
From TOPKAPI, 1 Year ago, written in C.
Embed
Download Paste or View Raw
Hits: 128
  1.  
  2.         int i = 0, j = 0;
  3.        
  4.         while( av[1][i] != '\0' && av[2][j] != '\0'){
  5.                
  6.                 int k = 0;
  7.                 int counter = 0;
  8.                 while(k < i){
  9.                         if(av[1][k] == av[1][i])
  10.                                 counter++;
  11.                         k++;
  12.                 }
  13.                
  14.                 if(counter != 0){
  15.                         i++;
  16.                         continue;
  17.                 }
  18.                
  19.                 while( av[2][j] != '\0'){
  20.                         if( av[1][i] == av[2][j] ){
  21.                                 counter++;
  22.                                 break;
  23.                         }
  24.                         j++;
  25.                 }
  26.                 if(counter == 1)
  27.                         printf("%c", av[1][i]);
  28.                
  29.                 i++;
  30.                 j = 0;
  31.         }
  32.        
  33.