public static void Main()
int[] arr1 = new int[100];
int[] arr2 = new int[100];
int[] arr3 = new int[100];
Console.Write("\n\nCount total number of duplicate elements in an array:\n");
Console.Write("Input the number of elements to be stored in the array :");
s1 = Convert.ToInt32(Console.ReadLine());
Console.Write("Input {0} elements in the array :\n",s1);
Console.Write("element - {0} : ",i);
arr1[i] = Convert.ToInt32(Console.ReadLine());
Console.Write("The number of duplicate elements is: {0} \n", ctr);