home *** CD-ROM | disk | FTP | other *** search
/ Microsoftware Monthly 19…2 Programming Power Tools / MASO9512.ISO / cpptutor / cpptutor.arj / CH02 / A02212.TXT < prev    next >
Encoding:
Text File  |  1993-11-29  |  279 b   |  6 lines

  1. If you want to check the condition only after the statements in a
  2. loop has been executed, use a do-while loop.  In this example, the
  3. message "x is 2" is outputed before the condition "x < 2" is
  4. evaluated.  A do-while loop always executes the body of the loop
  5. at least once.
  6.