#include <stdio.h> #include <conio.h> int main() { int array1 [10], i, number , j, flag=0; clrscr (); printf("\n Enter the size of the array:"); scanf ("%d", &number); for(i=0;i<number;i++) { scanf("%d", &array1[i]); } for(i=0;i<number;i++) { for(j= i+1;j<number;j++) { if(array1[i] == array1[j] && i!=j) { flag=1; printf("\n Duplicate number %d found at location %d and %d", array1 [i],i, j); } } } if (flag==60) { printf ("\n No Duplicate"); } return 0; }