Знающие и не очень (желательно - первые): подскажите, пожалуйста, в чём я тут заблуждаюсь?
Немного мозг уже опух, не улавливаю
package com.javarush.task.task04.task0428;
/*
Положительное число
*/
import java.io.*;
import java.util.*;
public class Solution {
public static void main(String[] args) throws Exception {
BufferedReader r = new BufferedReader(new InputStreamReader(System.in));
String s = r.readLine();
int a = Integer.parseInt(s);
String s2 = r.readLine();
int b = Integer.parseInt(s2);
String s3 = r.readLine();
int c = Integer.parseInt(s3);
if (a > 0 && b > 0 && c > 0)
System.out.println(3);
else {
if (a > 0 && b < 0 && c > 0) || (a < 0 && b > 0 && c > 0) || (a > 0 && b > 0 && c < 0)
System.out.println(2);
else {
if (a < 0 && b < 0 && c > 0) || (a < 0 && b > 0 && c < 0) || (a > 0 && b < 0 && c < 0)
System.out.println(1);
else {
if (a < 0 && b < 0 && c < 0)
System.out.println(0);
}
}
//напишите тут ваш код
}
}