Continue 的应用(暂时还不大会运用)

 static void Main(string[] args)
        {
            while (true)
            {
              
                int i=1;
                    while (i<=100)
             {
                  Console.WriteLine(i);
                        i++;
                    if (i==50)
                    {
                        Console.WriteLine("sdsa");
                     
                    } 
                       
                        continue;
                    
                  
 
                         Thread.Sleep(150);
             }
                Console.ReadLine();
            }
        }

posted @ 2015-04-02 19:15  XCml  阅读(105)  评论(0编辑  收藏  举报