mirror of
https://github.com/heqin-zhu/algorithm.git
synced 2024-03-22 13:30:46 +08:00
14 lines
221 B
Plaintext
14 lines
221 B
Plaintext
|
var a =1;
|
||
|
func foo(a)
|
||
|
print("[in function foo ] a=%d",a);
|
||
|
func bar(a)
|
||
|
begin
|
||
|
print("[in function bar ] a=%d",a);
|
||
|
foo(4);
|
||
|
end;
|
||
|
begin
|
||
|
print("[in function main] a=%d",a);
|
||
|
foo(2);
|
||
|
bar(3)
|
||
|
end.
|