### My issue

why 3 will be the answer

Learning course: Learn Java

Problem Link: CodeChef: Practical coding for everyone

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.

- Initially i=0 , so we print.
- Now i=2 , so we print again.
- 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.