Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# skip following code in loop

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
Source by www.codecademy.com #
 
PREVIOUS NEXT
Tagged: #skip #code #loop
ADD COMMENT
Topic
Name
9+8 =