-
ENDIF x = 1 DO
WHILE x < 50 x = x + 1
ENDDO x = 1 DO
WHILE .T. x = x + 1 IF x < 50 LOOP ELSE EXIT
ENDIF ENDDO nMonth = MONTH(DATE()) DO CASE CASE nMonth...
- 1)*2
enddo This does not mean that the code
cannot be parallelized. Indeed, it is
equivalent to the
DOALL loop do i = 2, n z(i) = z(1)*2**(i - 1)
enddo However...
-
ENDROUTINE or DO..
ENDDO etc. One
feature that sets it
apart from some
other languages is the
construction of loops: DO .... loop statements...
ENDDO Hopefully...
- TOFMT(*JUL) TOSEP(*NONE)
ENDDO ELSE IF (&TYP = M) + DO
CVTDAT DATE(&IN) TOVAR(&OUT) FROMFMT(*JUL) + TOFMT(*MDY) TOSEP(*NONE)
ENDDO SNDPGMMSG MSG('IN=' ||...
- FermatSieve(N, a, aend,
astep * modulus, NextModulus)
endif a ← a +
astep enddo But the
recursion is
stopped when few a-values remain; that is, when (aend-astart)/astep...
-
these basic structured programming constructs: IF...ELSEIF...ENDIF, DO...
ENDDO, FOR...ENDFOR, and CASEOF...CASE...ENDCASE
statements that transliterated...
- line numbers, and does not
support newer features such as WHILE/WEND, DO/
ENDDO, WITH/END WITH, procedures, properties, and so forth.
BASIC interpreters...
-
Fortran 77:
final keyword is END +
initial keyword e.g., IF ... ENDIF, DO ...
ENDDO Modula-2: same
final keyword END for
everything Visual Basic:
every control...
-
toolkit contains: A set of
structured programming macros — IF/ELSE/ENDIF DO/
ENDDO STRTSRCH/ORELSE/ENDLOOP/ENDSRCH CASENTRY/CASE/ENDCASE SELECT/WHEN/OTHRWISE/ENDSEL...
- line numbers, and does not
support newer features such as WHILE/WEND, DO/
ENDDO, WITH/END WITH, procedures, properties, and so forth.
BASIC statements are...