My code does what is intended to do but some how i can't get one of the validation.
>>>>>The program should display the number of positive numbers in the original set.<<<<<<
package com.codegym.task.task04.task0428;
/*
Positive number
*/
import java.io.*;
import java.util.Scanner;
public class Solution {
public static void main(String[] args) throws Exception {
Scanner obj = new Scanner(System.in);
String a1 = obj.nextLine();
int a = Integer.parseInt(a1);
String b1 = obj.nextLine();
int b = Integer.parseInt(b1);
String c1 = obj.nextLine();
int c = Integer.parseInt(c1);
int count = 0 ;
if(a > 0 && b > 0 && c > 0){
count = 3;
}
else if (a > 0 && b > 0){
count = 2;
}
else if (c > 0 && b > 0){
count = 2;
}
else if (a > 0){
count = 1;
}
else if (b > 0){
count = 1;
}
else if (c > 0){
count = 1;
}
System.out.println(count);
}
}