Console-算法[for]-简单画图

ylbtech-Arithmetic:Console-算法[for]-简单画图
 
1.A,案例
-- ========================================================
-- ylb:算法
-- Type:算法[for]
-- munu:简单画图
-- 20:32 2012/3/16
-- ========================================================
1.B,解决方案
using System;

namespace ConsoleApplication2

{

    class Program

    {

        static void Main(string[] args)

        {

            //画图

            int i;  //表示行

            int j;  //表示列

            for (i = 0; i < 3; i++)

            {

                for (j = 0; j < 6; j++)

                {

                    Console.Write("*");

                }

                Console.Write("\n");

            }

            

        }

    }

}
1.C,运行结果
******

******

******

请按任意键继续. . .
warn 作者:ylbtech
出处:http://ylbtech.cnblogs.com/
本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。

你可能感兴趣的:(console)