.NET Fiddle

CSharp · Console

/Program.cs

using System;
					
public class InvertedRightAngleTriangleProgram
{
	public static void Main()
	{
		//loop to start with 8, this time as we will print inverted triangle
		//loop to print number of rows, here 8
		for (int row = 8; row >= 1; row--)
        {
			//loop to print columns
            for (int col = 1; col <= row; col++)
            {
                Console.Write("*");
            }
            // to place cursor to next line
            Console.WriteLine();
        }
	}
}
;