2 test conditions are not fulfilled
1)
The program should display the number of positive numbers in the original set.
2)
Note that 0 is not a positive or negative number.
package com.codegym.task.task04.task0428;
/*
Positive number
*/
import java.util.*;
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception
{
Scanner bc = new Scanner(System.in);
int a,b,c;
int count=0;
a=bc.nextInt();
b=bc.nextInt();
c=bc.nextInt();
if((a<1&&a>-1)&&(b<1&&b>-1)&&(c<1&&c>-1))
{
System.out.println(0);
}
else
{
if(a>0&&a!=0)
++count;
else if (b>0&&b!=0)
++count;
else if(c>0&&c!=0)
++count;
// else if(count>=0)
System.out.println(count);
}
}
}