using System;
public class Program
{
public static void Main()
int[] x = new int[] { 1, 2, 3, 4, 5, 4, 3, 5 };
int y = x[0];
for (int i = 1; i < x.Length; i++)
if (x[i] > y)
y = x[i];
}
Console.WriteLine("Максимальний елемент у масиві: " + y);