Help me in solving SYNJMCQ46 problem

My issue

why 3 will be the answer

Learning course: Learn Java
Problem Link: CodeChef: Practical coding for everyone

The correct answer is 3 because ’ i ’ is being incremented by 2 repeatedly.

  1. Initially i=0 , so we print.
  2. Now i=2 , so we print again.
  3. Now i=4 , so now we will print and after printing we have a condition that if (i==4) break, so our loop will end.
    Thus we printed 3 times in total.