dont understad the error.
package com.codegym.task.task04.task0429;
/*
Positive and negative numbers
*/
import java.io.*;
import java.util.Scanner;
public class Solution {
public static void main(String[] args) throws Exception {
//write your code here
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
int countp = 0;
int countn = 0;
if ((a != 0)&&(b != 0)&&(c != 0))
{
if (a>0){countp ++;}
else {countn ++;}
if (b>0){countp ++;}
else {countn ++;}
if (c>0){countp ++;}
else {countn ++;}
System.out.println("Number of negative numbers: " + countn);
System.out.println("Number of positive numbers: " + countp);
}
else
System.out.println("Number of negative numbers: " + countn);
System.out.println("Number of positive numbers: " + countp);
}
}