title: How to remove duplicate elements in a array using freemarker?
body: <p>I had written the code for finding duplicate elements in C but now I am stuck at implementing the same code in freemarker Can anyone help?</p>
  
  <pre><code>int n, a[10], b[10], count = 0, c, d;
  
     printf("Enter number of elements in array\n");
     scanf("%d",&amp;n);
  
     printf("Enter %d integers\n", n);
     for(c=0;c&lt;n;c++)
        scanf("%d",&amp;a[c]);
  
     for(c=0;c&lt;n;c++)
     {
        for(d=0;d&lt;count;d++)
        {
           if(a[c]==b[d])
              break;
        }
        if(d==count)
        {
           b[count] = a[c];
           count++;
        }
     }
  
     printf("Array obtained after removing duplicate elements\n");         
     for(c=0;c&lt;count;c++)
        printf("%d\n",b[c]);
  </code></pre>