//打印方形,每行打印10个“★”,打印10行,
//使用循环嵌套,不允许定义内容为“AAAAAAAAAA”的变量;
for (int i = 1; i <= 10;i++ )
{
for (int k = 1; k <= 10;k++ )
{
Console.Write("★");
}
Console.WriteLine();
}
Console.ReadLine();
时间: 2024-10-20 02:27:47
//打印方形,每行打印10个“★”,打印10行,
//使用循环嵌套,不允许定义内容为“AAAAAAAAAA”的变量;
for (int i = 1; i <= 10;i++ )
{
for (int k = 1; k <= 10;k++ )
{
Console.Write("★");
}
Console.WriteLine();
}
Console.ReadLine();