C program to print repeated numbers in an array

C program to print repeated numbers in an array

Output:

Enter the size of the array:
16
Enter the elements of the array:
1 1 2 3 2 2 3 2 4 2 2 4 3 2 1 5
The repeated numbers in the array are:
1 2 3 4

Implementation: