C# Loops
The initializer runs once. The condition is checked before each iteration. The increment runs after each body execution.
C#
using System;
class Program {
static void Main() {
for (int i = 1; i <= 3; i++) {
Console.WriteLine(i);
}
}
}