using System;
using System.Collections.Generic;
using System.Text;
namespace @break
{
class Program
{
static void Main(string[] args)
{
int i = 0;
while (i < 12)
{
Console.WriteLine("i={0}", i);
i++;
if (i == 10)
{
//break; //跳出當前循環語句,執行while後面的代碼
continue; //跳出本次循環,繼續執行while循環
}
Console.WriteLine("當前i={0}", i);
}
Console.WriteLine("明白了嘛");
Console.ReadKey();
}
}
}