f the keyword procedure and a name given to the procedure. A procedure does not return anything.</p>

<pre>
program ExampleProcedure;

 procedure DrawLine (x1, y1, x2, y2: INTEGER);
 begin
  Moveto(x1, y1);
  Lineto(x2, y2);
 end;

begin

 ShowDrawing;
 DrawLine(20, 20, 100, 100);

end.
</pre>

<h3>Creating a function</h3>

<p>A function declaration tells the compiler about a function's name, return type, and parameters. A function definition provides the actual body of the function.</p>

<pre>
program Exam