here's my code:
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String aa = reader.readLine();
int a = Integer.parseInt(aa);
String bb = reader.readLine();
int b = Integer.parseInt(bb);
String cc = reader.readLine();
int c = Integer.parseInt(cc);
if (((a>0)&&(b>0))&&(c>0)){
System.out.println(3);
} else if (((a>0)&&(b>0))&&(c<=0)){
System.out.println(2);
} else if (((a>0)&&(b<=0))&&(c<=0)){
System.out.println(1);
} else if (((a<=0)&&(b<=0))&&(c<=0)){
System.out.println(0);
}
}
}
package com.codegym.task.task04.task0428;
/*
Positive number
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
//write your code here
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String aa = reader.readLine();
int a = Integer.parseInt(aa);
String bb = reader.readLine();
int b = Integer.parseInt(bb);
String cc = reader.readLine();
int c = Integer.parseInt(cc);
if (((a>0)&&(b>0))&&(c>0)){
System.out.println(3);
} else if (((a>0)&&(b>0))&&(c<=0)){
System.out.println(2);
} else if (((a>0)&&(b<=0))&&(c<=0)){
System.out.println(1);
} else if (((a<=0)&&(b<=0))&&(c<=0)){
System.out.println(0);
}
}
}