My Output Is Correct. Still It Shows Too Many Requirements Not Met. Please Anyone Tell Me, What's The Issue With My Code?
package com.codegym.task.task04.task0429;
/*
Positive and negative numbers
*/
import java.io.IOException;
import java.io.BufferedReader;
import java.io.InputStreamReader;
public class Solution {
public static void main(String[] args) throws Exception {
//write your code here
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
int a = Integer.parseInt(reader.readLine());
int b = Integer.parseInt(reader.readLine());
int c = Integer.parseInt(reader.readLine());
int greater = 0;
int smaller = 0;
if(a>0)
greater++;
if(b>0)
greater++;
if(c>0)
greater++;
if(a<0)
smaller++;
if(b<0)
smaller++;
if(c<0)
smaller++;
else
System.out.println("Number of negative number: " + smaller);
System.out.println("Number of positive number: " + greater);
}
}