📜  c# 在循环中跳过以下代码 - C# 代码示例

📅  最后修改于: 2022-03-11 14:49:10.279000             🧑  作者: Mango

代码示例1
int bats = 10;

for (int i = 0; i <= 10; i++)
{
  if (i < 9)
  {  
    continue;
  }
  // this will be skipped until i is no longer less than 9
  Console.WriteLine(i);
}
// this prints 9 and 10