foreach
string[] names = {"Rowena", "Robin", "Bao"};
foreach (string name in names)
{
Console.WriteLine(name);
}
for
for (int i = 0; i < 10; i++)
{
Console.WriteLine(i);
}
do while and while
do
{
Console.WriteLine("done"); // Executes at least once.
} while (false);
while (true)
{
updateGameLoop();
}