zoukankan      html  css  js  c++  java
  • // C# 输出6*6 的矩形

            static void Main(string[] args)
            {
                // C# 输出6*6 的矩形
                for (int i = 0; i < 6; i++)
                {
                    for (int j = 0; j < 6; j++)
                    {
                        if (i == 0 || i == 5)
                        {
                            Console.Write(" *");
                        }
                        else
                        {
                            if (j == 0 || j == 5)
                            {
                                Console.Write(" *");
                            }else
                            {
                                Console.Write("  ");
                            }
                        }
                    }
                    Console.Write("\r\n");
                }
                Console.ReadLine();
            }
  • 相关阅读:
    异步任务AsyncTask
    巧用TextView实现分隔线
    android系统的常用权限
    浅析对话框AlertDialog
    LinearLayout中的layout_weight属性详解
    CLOB大数据对象
    模糊查询demo
    ES6 箭头函数
    ES6中数组求和,求平均数方法( reduce )
    ES6中数组方法( every 和 some )
  • 原文地址:https://www.cnblogs.com/voidobject/p/3975508.html
Copyright © 2011-2022 走看看