Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

while - continue - break

  • while
  • break
  • continue
main() {
  int i = 0;
  while (i < 3) {
    i++;
    print(i);
  }
  
  print('----');
  while(true) {
    i++;
    if (i > 7) {
      break;
    }
    if (i == 5) {
      continue;
    }
    print(i);
  }
}