Step 1. At first i is initialized to 1.
Step 2: Now the condition i++ < 5 is checked, Here i is currently 1 and the value is incremented only after use.
So,The condition is TRUE and the Console.Write statement("Inside the loop : ") is executed.
Step 3: The control then enters the increment section of for loop, it contains -> Console.WriteLine(i).
The value of i had been incremented earlier in the condition section and hence 2 is printed.
Thus, when i = 2 next time and condition i++ <= 5 is TRUE, 3 is printed.
This goes on till last time when i = 5 as i++ would still be less than and equal to 5 and 6 is printed.
Next time i is 6 and 6++ <=5 is FALSE and the loop exits.