阅读程序写出运行结果5

来源:互联网 发布:软件行业猎头机构 编辑:程序博客网 时间:2024/05/16 06:52

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication3
{
   
    class Program
    {
        static void Main(string[] args)
        {
            int x = 0;
            while (x < 5)
            {
                if (x < 3)
                {
                    x++;
                    continue;
                }
                Console.Write("{0} ", x);
                x++;
            }
            Console.ReadKey();
        }
    }
}

 

说明:运行结果为4   5
0 0
原创粉丝点击