zoukankan      html  css  js  c++  java
  • 11. C#while循环

    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    
    namespace Ant11
    {
        /// <summary>
        /// While循环语句
        /// </summary>
        class Program
        {
            static void Main(string[] args)
            {
                /*
                //打印1-9数字到屏幕
                Console.WriteLine(1);
                Console.WriteLine(2);
                Console.WriteLine(3);
                Console.WriteLine(4);
                Console.WriteLine(5);
                Console.WriteLine(6);
                Console.WriteLine(7);
                Console.WriteLine(8);
                Console.WriteLine(9);
                */
                int i = 1;
                while (i <10)
                {
                    Console.WriteLine(i);
                    i++;
    
                }
                Console.Read();
            }
        }
    }
    
  • 相关阅读:
    mysql读写分离
    mysql主从同步
    扫描与抓包
    加密与入侵检查
    监控
    selinux
    预期交互
    python发送邮件
    linux下安装虚拟环境
    博弈论
  • 原文地址:https://www.cnblogs.com/gice/p/13025307.html
Copyright © 2011-2022 走看看