C#循环

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

namespace Demo
{
    class Program
    {
        static void Main(string[] args)
        {
            int i = 1;
            while (i<=10)
            {
                Console.WriteLine("{0}",i++);
            }

            Console.ReadKey();
        }
    }
}

原文地址:https://www.cnblogs.com/jiqing9006/p/6715122.html