try
{
int num = Convert.ToInt32(Console.ReadLine());
for (int i = 1; i <= num; i++)
{
for (int j = num-i; j >= 1; j--)
{
Console.Write("*");
}
Console.WriteLine();
}
}
catch
{
}
Console.ReadKey();
try
{
int num = Convert.ToInt32(Console.ReadLine());
for (int i = 1; i <= num; i++)
{
for (int j = num-i; j >= 1; j--)
{
Console.Write("*");
}
Console.WriteLine();
}
}
catch
{
}
Console.ReadKey();
本文标题:倒直角
本文链接:https://www.haomeiwen.com/subject/ewealqtx.html
网友评论