We use cookies to ensure that we give you the best experience about vital software issues 'n stuff. A cookie is a small text file containing information that a website transfers to your computer's hard disk for record-keeping purposes and allows us to analyze our site traffic patterns. It does not contain chocolate chips, you cannot eat it and there is no special hidden jar. If that's still okay for you, and you want to continue to use our website, you can close this message now (don't forget to read our Data Privacy Notice). Otherwise you gotta leave now :-( Close

3 kinds of people (pt. 3)

using System;

public class Program
{
public static void Main()
{
Console.WriteLine(“for”);
for (int j = 0; j < 10; j++)
{
Console.WriteLine(j);
}

    int i = 0;

    Console.WriteLine("while");
    while (i < 10)
    {
        Console.WriteLine(i);
        i++;
    }

    i = 0;

    Console.WriteLine("goto");
    Loop:
    if (! (i < 10)) goto End;
    Console.WriteLine(i);
    i++;
    goto Loop;
    End:
    return;

}

}

Leave a Reply

Your email address will not be published. Required fields are marked *