#代码
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication3
{
class Program
{
static void Main(string[] args)
{
Console.Write("请输入直角三角形行数");
int hang = Convert.ToInt32(Console.ReadLine());
for (int i = 0; i < hang ; i++)
{
for (int j = hang; j >i; j--)
{
Console.Write("*");
}
Console.WriteLine("");
}
Console.ReadKey();
}
}
}
#效果