zoukankan      html  css  js  c++  java
  • c# 打名字

     for (int i = 1; i <= 20; i++)
                   {
                       for (int j = 1; j <= 20; j++)
                       {
                          
                           if (i == 1 || i == 10 || i == 20 || j == 10)
                           {
                               Console.Write("○");
                           }
                           else
                           {
                               Console.Write("  ");
                           }
                       }
                       Console.WriteLine();
                   }
                   Console.WriteLine();
                   Console.WriteLine();
                   for (int i = 1; i <= 20; i++)
                   {
                       for (int j = 1; j <= 20; j++)
                       {
                          
                           if (i == 1 || j == 15 || i == 4 && (j > 4 && j < 11) || i == 12 && (j > 4 && j < 11) || j == 5 && (i > 4 && i < 12) || j == 10 && (i > 4 && i < 12) || i == 19 && j == 14 || i == 18 && j == 13)
                           {
                               Console.Write("○");
                           }
                           else
                           {
                               Console.Write("  ");
                           }
                       }
                       Console.WriteLine();
                   }

  • 相关阅读:
    hdu1593(find a way to escape)
    每日学习小记 11/02
    将博客搬至CSDN
    浏览器渲染机制
    适配器模式 The Adapter Pattern
    工厂方法模式 The Factory Method Pattern
    观察者模式 The Observer Pattern
    模板方法模式 The Template Method Pattern
    命令模式 The Command Pattern
    迭代器模式 The Iterator Pattern
  • 原文地址:https://www.cnblogs.com/lovesy2413/p/4313472.html
Copyright © 2011-2022 走看看