goto (avoid)
goto jumps to a label. It is rarely used and can make code hard to follow.
int i = 0;start:if (i < 3){ Console.WriteLine(i); i++; goto start;}Run the Application
Section titled “Run the Application”dotnet runResult
Section titled “Result”012