using System;
public class Kodify_Example
{
public static void Main()
int counter = 0;
repeat: // The goto label
Console.WriteLine("Counter = {0}", counter);
counter++;
if (counter < 5)
goto repeat; // Jump back to 'repeat' label
}
// Code here executes when goto isn't followed. (So
// after the loop ends.)
Console.WriteLine("Loop ended!");