Tuesday, 28 May 2019

Do while Loop used C# Program


Do while Loop


using System;
namespace Do_while_Loop_used_Program
{
    class Program
    {
        static void Main(string[] args)
        {
            int a = 10;
            do{
             Console.WriteLine("Value of a:{0}",a);
                a++;
            }
            while(a<20);
            Console.ReadKey();
        }
    }
}

No comments:

Post a Comment