const arr = [-3, 8, -7, 10, 5, -2, 12, 17, -1, 19];let countEvenNegative = 0;let minPositive = Infinity;
for (let i = 0; i < arr.length; i++) {if (arr[i] < 0 && arr[i] % 2 === 0) {countEvenNegative++;}if (arr[i] > 0 && arr[i] < minPositive) {minPositive = arr[i];}}
console.log("Количество четных отрицательных чисел:", countEvenNegative);console.log("Минимальное среди положительных чисел:", minPositive);
const arr = [-3, 8, -7, 10, 5, -2, 12, 17, -1, 19];
let countEvenNegative = 0;
let minPositive = Infinity;
for (let i = 0; i < arr.length; i++) {
if (arr[i] < 0 && arr[i] % 2 === 0) {
countEvenNegative++;
}
if (arr[i] > 0 && arr[i] < minPositive) {
minPositive = arr[i];
}
}
console.log("Количество четных отрицательных чисел:", countEvenNegative);
console.log("Минимальное среди положительных чисел:", minPositive);