Что тут лучше поправить, вроде все проходит
package com.javarush.task.task04.task0428;
import java.io.BufferedReader;
import java.io.InputStreamReader;
/*
Положительное число
*/
public class Solution {
public static void main(String[] args) throws Exception {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
int c = Integer.parseInt(reader.readLine());
int x = Integer.parseInt(reader.readLine());
int z = Integer.parseInt(reader.readLine());
int count = 0;
if ( c > 0 ) {
count++;
} else if ( c < 0 ) {
count = count;
}
if ( x > 0) {
count++;
} else if ( x < 0 ) {
count = count;
}
if( z > 0) {
count++;
} else if ( z < 0) {
count = count;
}
if ( c == 0 && x == 0 && z == 0) {
}
System.out.println("количество положительных чисел: " + count);
}
}