Difference between revisions of "Begin"

From Free Pascal wiki
Jump to navigationJump to search
m (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]] witch starts a program:  
+
[[keyword]] which starts a program:  
   program:1;
+
 
   var:(..);
+
   '''program''' Project1;
   Begin
+
   '''var'''(..);
  (..);
+
   '''begin'''
   End.
+
    (..);
 +
   '''end'''.
  
 
Or a block of actions:
 
Or a block of actions:
  (..)
+
 
   if (..)then
+
   '''if''' (..)'''then'''
    begin (..)
+
  '''begin'''
    end
+
    (..)
   else
+
  '''end'''
    begin (..)
+
   '''else'''
    end.
+
  '''begin'''
 +
    (..)
 +
  '''end''';
 +
 
 +
A statement starting with '''begin''' must always be closed with the '''[[end]]''' keyword.

Revision as of 20:43, 8 March 2006

keyword which starts a program:

 program Project1;
 var(..);
 begin
   (..);
 end.

Or a block of actions:

 if (..)then
 begin
   (..)
 end
 else
 begin
   (..)
 end;

A statement starting with begin must always be closed with the end keyword.