C#输出如下图案
usingSystem;usingSystem.Collections.Generic;usingSystem.Text;namespace输出图案{classProgr...
using System;
using System.Collections.Generic;
using System.Text;
namespace 输出图案
{
class Program
{
static void Main(string[] args)
{
string[,] a = new string[,] { { "*" }, { "**" }, { "***" }, { "****" } };
disp(a);
for (int m = 0; m < 5; m++)
{
for (int n = 0; n < m; n++)
{
Console.WriteLine("{0}", a);
}
//Console.WriteLine(" ");
}
}
}
} 展开
using System.Collections.Generic;
using System.Text;
namespace 输出图案
{
class Program
{
static void Main(string[] args)
{
string[,] a = new string[,] { { "*" }, { "**" }, { "***" }, { "****" } };
disp(a);
for (int m = 0; m < 5; m++)
{
for (int n = 0; n < m; n++)
{
Console.WriteLine("{0}", a);
}
//Console.WriteLine(" ");
}
}
}
} 展开
展开全部
using System;
using System.Collections.Generic;
using System.Text;
namespace 输出图案
{
class Program
{
static void Main(string[] args)
{
string[] a = new string[] { "*" , "**" , "***", "****" };
for (int m = 0; m < 4; m++)
{
Console.WriteLine(a[m]);
}
}
}
}
using System.Collections.Generic;
using System.Text;
namespace 输出图案
{
class Program
{
static void Main(string[] args)
{
string[] a = new string[] { "*" , "**" , "***", "****" };
for (int m = 0; m < 4; m++)
{
Console.WriteLine(a[m]);
}
}
}
}
展开全部
using System;
using System.Collections.Generic;
using System.Text;
namespace 输出图案
{
class Program
{
static void Main(string[] args)
{
string[,] a = new string[,] { { "*" }, { "**" }, { "***" }, { "****" } };
//disp(a);
for (int m = 0; m < a.Length; m++)
{
//for (int n = 0; n < m; n++)
{
Console.WriteLine("{0}", a[m,0]);
}
//Console.WriteLine(" ");
}
Console.ReadKey();
}
}
}
using System.Collections.Generic;
using System.Text;
namespace 输出图案
{
class Program
{
static void Main(string[] args)
{
string[,] a = new string[,] { { "*" }, { "**" }, { "***" }, { "****" } };
//disp(a);
for (int m = 0; m < a.Length; m++)
{
//for (int n = 0; n < m; n++)
{
Console.WriteLine("{0}", a[m,0]);
}
//Console.WriteLine(" ");
}
Console.ReadKey();
}
}
}
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询