zoukankan      html  css  js  c++  java
  • 画倒三角形

    namespace _7月3日课堂练习
    {
        class Program
        {
            static void Main(string[] args)
            {
                
                hua(5);
                Console.ReadKey();

            }


            public static void hua(int n)
            {
                int res = n;
                while (n>=0)
                {
                    string str1 = new string(' ', res - n);
                    string str2 = new string('*', 2 * n - 1);
                    Console.WriteLine("{0}{1}", str1, str2);
                    n--;
                }
               
            }

            
     
        }
    }
  • 相关阅读:
    测试的种类
    软件测试的原则
    软件测试的目的
    软件测试的对象
    软件的分类
    软件测试
    mysql 视图
    mysql 字段添加以及删除
    mysql 引擎类型
    mysql 数据插入insert
  • 原文地址:https://www.cnblogs.com/349932030yin/p/2575552.html
Copyright © 2011-2022 走看看