public class Solution {
public static void main(String[] args) throws Exception {
//напишите тут ваш код
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
int a = Integer.parseInt(reader.readLine());
int b = Integer.parseInt(reader.readLine());
int c = Integer.parseInt(reader.readLine());
int count = 0;
int discount = 0;
if (a>0)
count ++;
else if (a<0)
discount ++;
if (b>0)
count ++;
else if (b<0)
discount ++;
if (c>0)
count ++;
else if (c<0)
discount ++;
System.out.println("Количество отрицательных чисел: " + discount);
System.out.println("Колчиество положительных чисел: " + count);
}
}package com.javarush.task.task04.task0429;
/*
Положительные и отрицательные числа
*/
import java.io.*;
import java.util.*;
public class Solution {
public static void main(String[] args) throws Exception {
//напишите тут ваш код
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
int a = Integer.parseInt(reader.readLine());
int b = Integer.parseInt(reader.readLine());
int c = Integer.parseInt(reader.readLine());
int count = 0;
int discount = 0;
if (a>0)
count ++;
else if (a<0)
discount ++;
if (b>0)
count ++;
else if (b<0)
discount ++;
if (c>0)
count ++;
else if (c<0)
discount ++;
System.out.println("Количество отрицательных чисел: " + discount);
System.out.println("Колчиество положительных чисел: " + count);
}
}