using System;
class Program{static void Main(){int[] numbers = { 5, -3, 2, -8, 0, -1, 7, -4, 9, -6 };
}
using System;
class Program
int countNegative = 0;{
static void Main()
{
int[] numbers = { 5, -3, 2, -8, 0, -1, 7, -4, 9, -6 };
foreach (int number in numbers)
{
if (number < 0)
{
countNegative++;
}
}
Console.WriteLine("Количество отрицательных чисел: " + countNegative);
}
}