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