How to remove duplicate elements in a array using freemarker?
问题 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? int n, a[10], b[10], count = 0, c, d; printf("Enter number of elements in array\n"); scanf("%d",&n); printf("Enter %d integers\n", n); for(c=0;c<n;c++) scanf("%d",&a[c]); for(c=0;c<n;c++) { for(d=0;d<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