Siemanko,
mam problem tekstem..
Czego nie widzę?:/
package pl.codegym.task.task06.task0606;
import java.io.*;
/*
Cyfry parzyste i nieparzyste
*/
public class Solution {
public static int parzyste;
public static int nieparzyste;
public static void main(String[] args) throws IOException {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
int x = Integer.parseInt(reader.readLine());
parzyste = 0;
nieparzyste = 0;
while(x % 10 > 1){
if(x % 2 == 0) parzyste += 1;
else nieparzyste += 1;
x = x/10;
}
System.out.println("Parzyste: " + parzyste + " " + "Nieparzyste: " + nieparzyste);
}
}