For

From Free Pascal wiki
Revision as of 17:34, 10 January 2007 by Swen (talk | contribs)
Jump to navigationJump to search

keyword used with "to"\"downto" and "do" for a loop:

 for I:=1 to 100 do

(repeats the actions for a hundred times,from 1 to 100)

 for I:=100 downto 1

(repeats the actions for a hundred timed,from 100 to 1)

  • you can use types instead of numbers.


Keywords: begindoelseendforifrepeatthenuntilwhile