Difference between revisions of "Begin"
From Free Pascal wiki
Jump to navigationJump to searchm (Just corrected english spelling) |
m (Reverted edit of Rd27642926, changed back to last version by Nluckhurst) |
||
(6 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | [[keyword]] | + | [[keyword]] which starts a program: |
− | program | + | |
− | var | + | '''program''' Project1; |
− | + | '''var'''(..); | |
− | + | '''begin''' | |
− | + | (..); | |
+ | '''end'''. | ||
Or a block of actions: | Or a block of actions: | ||
− | + | ||
− | if (..)then | + | '''if''' (..)'''then''' |
− | + | '''begin''' | |
− | + | (..) | |
− | else | + | '''end''' |
− | + | '''else''' | |
− | + | '''begin''' | |
+ | (..) | ||
+ | '''end'''; | ||
+ | |||
+ | A statement starting with '''begin''' must always be closed with the '''[[end]]''' keyword. |