Что делать с нулём?
Не проходит:
"Учти, что "0" не относится ни к положительным, ни к отрицательным числам."
package com.javarush.task.task04.task0428;
/*
Положительное число
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String aa = reader.readLine();
int a = Integer.parseInt(aa);
String bb = reader.readLine();
int b = Integer.parseInt(bb);
String cc = reader.readLine();
int c = Integer.parseInt(cc);
if ((a>0 && b<0 && c<0) || (b>0 && c<0 && a<0) || (c>0 && a<0 && b<0))
System.out.println(1);
if ((a>0 && b>0 && c<0) || (b>0 && c>0 && a<0) || (c>0 && a>0 && b<0))
System.out.println(2);
if (a>0 && b>0 && c>0)
System.out.println(3);
if (a<1&& b<1 && c<1)
System.out.println(0);
//напишите тут ваш код
}
}