loop for en C#
Hi, I don’t understand why, in this example from the Microsoft documentation:
for (int i = 0; i < 3; i++)
{
Console.Write(i);
}
Hi, I don’t understand why, in this example from the Microsoft documentation, the console displays the initial value of i (0). My code is supposed to run from top to bottom during the first iteration of the loop, so the increment should happen before the console output…
Posted May 1, 2026, 11:34 AM UTC
212