title: findig duplicate elements in an array, not working
body: <p>Hi friends i have this array and i am trying to find out how many elements are duplicate and what are the remaining elements. But the problem it is showing different result. Please check it</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;stdlib.h&gt;
  
  #define SIZE 30
  
  int const arr_1[SIZE] = {3,4,3,7,4,90,45,23,57,68,23,14,57,
                     34,20,39,18,3,2,23,45,67,89,68,12,34,56,78,3
                     };
  
  
  
  int main()
  {
  
    int i,j,yes=0, no=0;
  
    for(i=0;i&lt;SIZE;i++)
    {
       for(j=0; j&lt;SIZE; j++)
       {
          if(arr_1[i] == arr_1[j])
  
                yes++; 
           else 
  
             no++;   
  
       }
  
    }
  
    printf("temp: %d\t Not: %d\n",yes,no);
  
    system("PAUSE");
    return 0;
  }
  </code></pre>