打印10行10列★

            //打印方形,每行打印10个“★”,打印10行,

            //使用循环嵌套,不允许定义内容为“AAAAAAAAAA”的变量;

            for (int i = 1; i <= 10;i++ )

            {

                for (int k = 1; k <= 10;k++ )

                {

                    Console.Write("★");

                }

                Console.WriteLine();

            }

            Console.ReadLine();

转载于:https://www.cnblogs.com/fengsantianya/p/5456570.html

你可能感兴趣的:(python)