Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Telix/SALT v3.15 & RS-232, Hayes - <b>do ... while</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  DO ... WHILE

  The do...while statement is similar to the while statement and has
  the form:

       do
         <statement>
       while (<expression>);

  <statement> will be executed at least once and will continue to be
  executed repeatedly until the expression becomes 0 (FALSE). A few
  examples are:

       do
         stat = func1();
       while (stat != -1);

       do
        {
         prints("hello");
         num = num + 1;
        }
       while (num < 100);

See Also: break continue for while statements expressions

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson