using System;
public class Program
{
public static void Main()
bool condition = true;
// the loop condition is tested prior to every loop
// the loop executes only while the condition is true
while (condition)
Console.WriteLine("Loop!");
// condition is set from the return value of DoSomeWork()
condition = DoSomeWork();
}
public static bool DoSomeWork()
return false;