do loop
do loop A counting loop in a program, in which a section of code is obeyed repeatedly with a counter taking successive values. Thus in Fortran,
DO 10 I = 1,100
〈statements〉
10 CONTINUE
causes the 〈statements〉 to be obeyed 100 times. The current value of the counter variable is often used within the loop, especially to index an array. There are many syntactic variants: in Pascal and Algol-related languages the same basic construct appears as the for loop, e.g.
for i := 1 to 100 do
begin
〈statements〉
end
This kind of loop is a constituent of almost all programming languages (except APL, which has array operations defined as operators in the language).
See also do-while loop.
DO 10 I = 1,100
〈statements〉
10 CONTINUE
causes the 〈statements〉 to be obeyed 100 times. The current value of the counter variable is often used within the loop, especially to index an array. There are many syntactic variants: in Pascal and Algol-related languages the same basic construct appears as the for loop, e.g.
for i := 1 to 100 do
begin
〈statements〉
end
This kind of loop is a constituent of almost all programming languages (except APL, which has array operations defined as operators in the language).
See also do-while loop.
More From encyclopedia.com
Edison , Edison A programming language for designing reliable real-time programs for multiprocessor systems. Edison is block-structured and includes modules,… statement , state·ment / ˈstātmənt/ • n. a definite or clear expression of something in speech or writing: do you agree with this statement? this is correct as a… Verification , The term "verification" concerns statements or theories. Since a theory can be formulated as a conjunction of hypotheses, and therefore as a single s… Proof (mathematics) , Proof
A proof is a logical argument demonstrating that a specific statement, proposition, or mathematical formula is true. It consists of a set of as… Parsing , PARSING [From the verb parse, from Latin pars/partis a part, abstracted from the phrase pars orationis part of speech].
1. Analysing a SENTENCE into… Programming Language , In order for computers to accept commands from humans and perform tasks vital to productivity and e-commerce, a means of communication must exist. Pr…
You Might Also Like
NEARBY TERMS
do loop