Console.WriteLine("请输入倒金字塔的塔高");
int n = Convert.ToInt32(Console.ReadLine());
for (int i = 1; i <= n; i++)
{
for (int j = i; j <= n; j++)
{
Console.Write("* ");
}
Console.WriteLine(" ");
}
Console.ReadKey();
Console.WriteLine("请输入倒金字塔的塔高");
int n = Convert.ToInt32(Console.ReadLine());
for (int i = 1; i <= n; i++)
{
for (int j = i; j <= n; j++)
{
Console.Write("* ");
}
Console.WriteLine(" ");
}
Console.ReadKey();
本文标题:2018-12-20
本文链接:https://www.haomeiwen.com/subject/fmyekqtx.html
网友评论