What is wrong with my code?
package pl.codegym.task.task04.task0429;
/*
Liczby dodatnie i ujemne
*/
import java.io.*;
import java.util.Scanner;
public class Solution {
public static void main(String[] args) throws Exception {
//tutaj wpisz swój kod
Scanner scanner = new Scanner(System.in);
int a = scanner.nextInt();
int b = scanner.nextInt();
int c = scanner.nextInt();
int positiveCount = 0;
int negativeCount = 0;
if (a != 0 && b != 0 && c != 0) {
if (a > 0) {
positiveCount++;
}
else {
negativeCount++;
}
if (b > 0) {
positiveCount++;
}
else {
negativeCount++;
}
if (c > 0) {
positiveCount++;
}
else {
negativeCount++;
}
}
System.out.println("Liczba liczb ujemnych: " + negativeCount);
System.out.println("Liczba liczb dodatnich: " + positiveCount);
}
}