Using While Loop

using System;
class Program
{
    public static void Main(String[] args)
    {
        int i = 10;
        while (i > 0)
        {
            Console.WriteLine(i);
            i--;
        }
        Console.ReadKey();
    }
}

No comments:

Post a Comment