Unable to identify 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 read = new Scanner(System.in);
int a = read.nextInt();int b = read.nextInt();int c = read.nextInt();
int pst = 0 ;
int ngt = 0 ;
if(a>0){
pst+=1;
}
else{
ngt+=1;
}
if(b>0){
pst+=1;
}
else{
ngt+=1;
}
if(c>0){
pst+=1;
}
else{
ngt+=1;
}
if(a==0){
pst+=0;
ngt+=0;
}
if(b==0){
pst+=0;
ngt+=0;
}
if(c==0){
pst+=0;
ngt+=0;
}
System.out.println("Number of negative numbers: "+ngt);
System.out.println("Number of positive numbers: "+pst);
}
}