Encyclopedia

do loop

Also found in: Dictionary, Medical, Legal, Financial.

do loop

[′dü ‚lüp]
(computer science)
A FORTRAN iterative technique which enables any number of instructions to be executed repeatedly.
McGraw-Hill Dictionary of Scientific & Technical Terms, 6E, Copyright © 2003 by The McGraw-Hill Companies, Inc.

do loop

This article is provided by FOLDOC - Free Online Dictionary of Computing (foldoc.org)

do loop

A high-level programming language structure that repeats instructions based on the results of a comparison. In a DO WHILE loop, the instructions within the loop are performed if the comparison is true. In a DO UNTIL loop, the instructions are bypassed if the comparison is true. The following simulated DO WHILE loop prints 1 through 10 and stops. The bold words are programming commands, and the others are variables created by the programmer. See variable and loop.

   counter = 0
   do while counter < 10
     counter = counter + 1
     print counter
   enddo
Copyright © 1981-2025 by The Computer Language Company Inc. All Rights reserved. THIS DEFINITION IS FOR PERSONAL USE ONLY. All other reproduction is strictly prohibited without permission from the publisher.
Copyright © 2003-2025 Farlex, Inc Disclaimer
All content on this website, including dictionary, thesaurus, literature, geography, and other reference data is for informational purposes only. This information should not be considered complete, up to date, and is not intended to be used in place of a visit, consultation, or advice of a legal, medical, or any other professional.