In this example, a counter is initialized to count from 1 to 10. By using the continue statement in conjunction with the expression (i < 9), the statements between continue and the end of the for body are skipped.
for (int i = 1; i <= 10; i++)
if (i < 9)
// Keep the console open in debug mode.
Console.WriteLine("Press any key to exit.");