三、
Console.WriteLine("请输入直角三角形的行数");
int num = Convert.ToInt32(Console.ReadLine ());
for (int i = 1; i<=num; i++)
{
for (int j = 1; j<= 2i-1; j++)
{
Console.Write("");
}
Console.WriteLine();
}
Console.ReadKey();
四、
Console.WriteLine("请输入倒直角三角形的行数");
int num = Convert.ToInt32(Console.ReadLine ());
for (int i = 1; i<=num; i++)
{
for (int j = num; j>= i; j++)
{
Console.Write("*");
}
Console.WriteLine();
}
Console.ReadKey();
五、
for (int i = 1; i<=9; i++)
{
for (int j = 1; j <=i; j++)
{
Console.Write("{0}{1}={2} ",j,i,ji);
}
Console.WriteLine();
}
Console.ReadKey();