public static void Main()
int[] arr = new int[100];
int[] arr2 = new int[100];
int[] arr3 = new int[100];
Console.WriteLine("Input the number of elements to store in array:");
n = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("Input {0} number of elements in the array: " , n);
for(int x = 0; x < n; x++)
Console.Write("element - {0} :", x);
arr[x] = Convert.ToInt32(Console.ReadLine());
for(int x = 0; x < n; x++)
for(int x = 0; x < n; x++)
for (int y = 0; y < n; y++)
for(int x = 0; x < n; x++)
Console.Write("\nThe total number of duplicates in the array are {0}", ctr);