⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 program.cs

📁 C#2.0宝典源码,C#经典书籍,很多例子
💻 CS
字号:
using System;
using System.Collections.Generic;
using System.Text;

namespace Example4_11 {
    class Program {
        static void Main(string[] args) {
            int i = 5;
            int j = 5;

            //使用do循环
            do {
                i++;
                Console.WriteLine("do循环:{0}", i.ToString());
            }
            while (i < 5);

            //使用while循环
            while (j < 5) {
                j++;
                Console.WriteLine("while循环:{0}", j.ToString());
            }

            Console.ReadLine();
        }
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -