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

namespace Ant11
{
    /// <summary>
    /// While循环语句
    /// </summary>
    class Program
    {
        static void Main(string[] args)
        {
            /*
            //打印1-9数字到屏幕
            Console.WriteLine(1);
            Console.WriteLine(2);
            Console.WriteLine(3);
            Console.WriteLine(4);
            Console.WriteLine(5);
            Console.WriteLine(6);
            Console.WriteLine(7);
            Console.WriteLine(8);
            Console.WriteLine(9);
            */
            int i = 1;
            while (i <10)
            {
                Console.WriteLine(i);
                i++;

            }
            Console.Read();
        }
    }
}