Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Program procedure_test;
Procedure my_first_procedure;
Begin
Writeln(æThis is a procedure.Æ);
End;
{Main program}
Begin
my_first_procedure;
readln;
end.
procedure name;
var
localvariable : integer;
laocalarray : array[1..10] of integer
begin
{some code}
end;
procedure proc1;
var
i : integer;
begin
{some code}
end;
procedure proc2;
var
i : integer;
begin
{some other code}
end;
Program parameter_passing;
Var
x, y, z : integer
Procedure add_together(num1, num2 : integer);
Begin
z := num1 + num2;
end;
{main program}
begin
writeln(æEnter in number 1 : æ);
readln(x);
writeln(æEnter number 2 : æ);
readln(y);
add(x, y);
writeln(z);
end.