12.07.2015 Views

GNU Octave - Local Sector 7 web page

GNU Octave - Local Sector 7 web page

GNU Octave - Local Sector 7 web page

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

86 <strong>GNU</strong> <strong>Octave</strong>num = 103;div = 2;while (div*div num)printf ("%d is prime\n", num);break;endifendwhile12.7 The continue StatementThe continue statement, like break, is used only inside for or while loops. It skipsover the rest of the loop body, causing the next cycle around the loop to begin immediately.Contrast this with break, which jumps out of the loop altogether. Here is an example:

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!