C# program to print half Inverted Pyramid of Stars

Program

using System;
namespace PrintHalfInvertedPyramidStar
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Half Inverted Pyramid of * : Right Angled Triangle");
            Console.Write("Enter the number of rows:\t");
            int rows = int.Parse(Console.ReadLine());
            int i, j; 
            for (i = rows; i >= 1; i--) 
            { 
                for (j = 1; j <= i; j++) 
                { 
                    Console.Write("* ");                    
                } 
                Console.WriteLine();
            }
        }
    }
}

Output

Half Inverted Pyramid of * : Right Angled Triangle
Enter the number of rows:       4
* * * *
* * *
* *
*