Do-While in C#

do loops operate as follows. The code you have marked out for looping is executed, a Boolean test is performed, and the code executes again if this test evaluates to true , and so on. When the test evaluates to false , the loop exits.

Example

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            int i = 1;
            do
            {
                Console.WriteLine("{0}", i++);
            } while (i <= 10);
            Console.Read();
        }
    }
}