Why the attached code gives me this out put :
3 , 5 , 7 , 9
it should show the even values only
public static void main (String [] args){
int i = 1;
while ( i < 10 ){
if ((i++)%2 == 0){
System.out.println(i);
}
}}