Example shows the way one could break and come out of a for loop.
Example:
using System;
class ExampleForContinueClass
{
public static void Main()
{
int counter;
Console.WriteLine("Continue will not allow to display the counter: " );
for(counter = 1; counter <= 5; counter = counter++)
{
continue;
Console.WriteLine("Display counter: " + counter);
}
}
}
Output:
Continue will not allow to display the counter: