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();
        }
    }
}

posted @ 2017-04-15 18:24  TBHacker  阅读(171)  评论(0编辑  收藏  举报