Friday 23 January 2015

C# Example program for dowhile

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace do_while
{
    class Program
    {
        static void Main(string[] args)
        {
            int i = 0;
            do
            {
                Console.WriteLine(i);
                i++;
            }
            while (i < 5);
            Console.ReadLine();
        }
       
    }
}


No comments:

Post a Comment