C#系列教程——迭代语句do定义及使用

来源:互联网 发布:我国网络社会治理方针 编辑:程序博客网 时间:2024/06/07 06:08

代码如下:

using System;public class DoWhile_Test{    public static void Main()    {        int x = 0;        do        {            Console.WriteLine("循还数据{0}", x);            x++;        }        while (x < 15);    }}


 

原创粉丝点击