Код нормально функционирует но задание не могу пройти "Учти, что "0" не относится ни к положительным, ни к отрицательным числам."
Что не так сделал подскажите ?
package com.javarush.task.task04.task0428;
/*
Положительное число
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
BufferedReader read = new BufferedReader(new InputStreamReader(System.in));
String a1 = read.readLine();
String b1 = read.readLine();
String c1 = read.readLine();
int a = Integer.parseInt(a1);
int b = Integer.parseInt(b1);
int c = Integer.parseInt(c1);
if (a > 0 && b > 0 && c > 0)
System.out.println("3");
if (a < 0 && b > 0 && c > 0)
System.out.println("2");
if (a > 0 && b < 0 && c > 0)
System.out.println("2");
// if (a > 0 && b < 0 && c < 0)
// System.out.println("2");
if (a < 0 && b < 0 && c < 0)
System.out.println("0");
if (a > 0 && b < 0 && c < 0)
System.out.println("1");
if (a < 0 && b > 0 && c < 0)
System.out.println("1");
if (a < 0 && b < 0 && c > 0)
System.out.println("1");
if (a > 0 && b > 0 && c < 0)
System.out.println("2");
}
}