标签:
int n = 10; for (int i = 1; i <= n; i++) { Console.Write(new string(‘ ‘, n - i)); for (int j = 1; j <= i - 1; j++) Console.Write(" *"); Console.Write("\n"); } Console.ReadKey();
c#三角形
原文地址:http://www.cnblogs.com/mengluo/p/4772633.html