why is my code here not working im trying to print out every second number in the sequence as hello
public class Generalizations {
public static void main(String[] args) {
for(int i=0;i<10;i++)
System.out.println(i);
if (i%2==0){
System.out.println("hello");
}
}
}