My code is not not satisfying any conditions, i don't know why? Please help!
package com.codegym.task.task06.task0606;
import java.io.*;
public class Solution {
public static int even;
public static int odd;
public static int main(String[] args) throws IOException {
BufferedReader br= new BufferedReader(new InputStreamReader(System.in));
String s= br.readLine();
int num=Integer.parseInt(s);
if (num==0)
return 0;
while(num!=0){
if(num%2==0)
even++;
else
odd++;
num=num/10;
}
System.out.println("Even: "+even+" Odd: "+odd);
return 0;
}
}