jackfiled
89ce313b77
Reviewed-on: https://git.bupt-hpc.cn/jackfiled/CanonSharp/pulls/4 Co-authored-by: jackfiled <xcrenchangjun@outlook.com> Co-committed-by: jackfiled <xcrenchangjun@outlook.com>
18 lines
175 B
ObjectPascal
18 lines
175 B
ObjectPascal
program main;
|
|
var
|
|
a: integer;
|
|
b: integer;
|
|
|
|
function func(p: integer): integer;
|
|
begin
|
|
p := p - 1;
|
|
func := p;
|
|
end;
|
|
|
|
begin
|
|
a := 10;
|
|
b := func(a);
|
|
|
|
write(b);
|
|
end.
|