using System; public class Exercise8 { public static void Main() { int[] arr1 = new int[100]; int[] fr1 = new int[100]; int n, i, j, ctr; Console.Write("\n\nCount the frequency of each element of an array:\n"); Console.Write("----------------------------------------------------\n"); Console.Write("Input the number of elements to be stored in the array :"); n = Convert.ToInt32(Console.ReadLine()); Console.Write("Input {0} elements in the array :\n",n); for(i=0; i