Please can anyone tell me where is my issue is? Thanks ahead.
package com.codegym.task.task06.task0606;
import java.io.*;
/*
Even and odd digits
*/
public class Solution {
public static int even;
public static int odd;
public static void main(String[] args) throws IOException {
//write your code here
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
int num = Integer.parseInt(reader.readLine());
while(num > 1){
if(num % 2 == 0){
even++;
num /=10;
}
else{
odd++;
num /= 10;
}
}
int a = even;
int b = odd;
System.out.println("Even: "+a+" Odd: "+b);
}}