When i run program works correctly but.........can't verify..............
Plz help me out this ........
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 br = new BufferedReader(new InputStreamReader(System.in));
String num = br.readLine();
int even = 0; int odd = 0; int pos = 0; //int len = num.length();
for(int i = 0; i < num.length(); i++){
pos = num.charAt(i);
int n = Character.getNumericValue(pos);
if(n % 2 == 0){
even++;
}else{
odd++;
}
}
System.out.println("Even:" +even);
System.out.println("Odd:" +odd);
}
}