GMgKe586q6suSQnyqZLlGCooeWM

Pages

Search

Thursday, December 23, 2010

Procedure In Pascal

Here's a code on how write a procedure in Pascal:

Without Parameters

Program UsingProc;

uses wincrt;

procedure hello;
var
    name : string;
begin
    name := 'lady gaga';
    writeln(name);
end;

begin
    hello;
end.

With Parameters:

Program UsingProcParam;

uses wincrt;

procedure hello(name : integer);
begin
    writeln(name);
end;

begin
    hello('lady gaga');
end.
          
Share/Bookmark

1 comment: