how to slove
package com.codegym.task.task04.task0429;
/*
Positive and negative numbers
*/
import java.util.*;
public class Solution {
public static void main(String[] args) throws Exception {
//write your code here
Scanner ob = new Scanner(System.in);
int m = 0;
int n = 0;
int a = ob.nextInt();
int b = ob.nextInt();
int c = ob.nextInt();
if(a>0 && b>0 && c>0){
m = 3;
n = 0;
}
else if (a <= 0 && b > 0 && c > 0){
m = 2;
n = 1;
}
else if (b <= 0 && a > 0 && c > 0){
m = 2;
n = 1;
}
else if (c <= 0 && a > 0 && b > 0){
m = 2;
n = 1;
}
else if (a > 0 && b <= 0 && c <= 0){
m = 1;
n = 2;
}
else if (b > 0 && a <= 0 && c <= 0){
m = 1;
n = 2;
}
else if (c > 0 && a <= 0 && b <= 0){
m = 1;
n = 2;
}
else if (a <= 0 && b <= 0 && c <= 0){
m = 0;
n = 3;
}
System.out.println("Number of negative numbers: " + n);
System.out.println("Number of positive numbers: " + m);
}
}