public static void Main()
Console.WriteLine("Enter lenght of the array:");
int n = int.Parse(Console.ReadLine());
for (int i = 1; i <= n; i++)
Console.WriteLine("Enter a number:");
int a = int.Parse(Console.ReadLine());
for (int i = 0; i < n; i++)
for (int j = 0; j < n; j++)
Console.WriteLine("----------------------");
Console.WriteLine("{0} occurs {1} times.", maxChislo, maxBr);