using System;
public class Program
{
//פעולה שמקבלת מערך ומחזירה טרו אפ מספר המספריפ הזוגיים שווה לאי זוגי ומחזירה פולס אם לא
public static void Main()
int[] x = new int[] {1,7,89,62,2,1,4,3,56,8};
Console.WriteLine (evenodd (x));
}
public static bool evenodd (int[] x)
int o=0 , e=0;
for (int i = 0; i <x.Length; i++)
if (x[i]%2 ==0)
e++;
else o++;
if (e == o)
return true;
else return false;