using System;
public class Program
{
public static void Main()
int[] arr = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
int s = 0;
for (int i=0; i< arr.Length; i++)
if (arr[i] % 2 == 0)
s+=arr[i];
}
Console.Write("Сума парних елементів масиву: " + s );