日期:2014-05-17  浏览次数:20347 次

来来来 输出图形
########
 ######
  ####
   ##

用两个for循环来输出  求赐教  一直没想出来怎么输出空格; 只是输出了
########
######
####
##
C#

------解决方案--------------------
for (int i = 4; i >= 1; i++)
{
    for (int j = 0; j < 4 - i; i++) Console.Write(" ");
    for (int j = 0; j < i * 2; i++) Console.Write("#");
    Console.WriteLine();
}