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