mirror of
https://github.com/ProgramSnail/Lama.git
synced 2025-12-07 15:28:49 +00:00
29 lines
278 B
Text
29 lines
278 B
Text
|
|
fun print () {
|
||
|
|
write (a);
|
||
|
|
write (b);
|
||
|
|
write (c)
|
||
|
|
}
|
||
|
|
|
||
|
|
fun test1 (a) {
|
||
|
|
write (a);
|
||
|
|
print ();
|
||
|
|
write (a);
|
||
|
|
if a < 4 then
|
||
|
|
test2 (a+1);
|
||
|
|
print ()
|
||
|
|
fi
|
||
|
|
}
|
||
|
|
|
||
|
|
fun test2 (b) {
|
||
|
|
write (b);
|
||
|
|
print ();
|
||
|
|
test1 (b+1);
|
||
|
|
print ()
|
||
|
|
}
|
||
|
|
|
||
|
|
a := 100;
|
||
|
|
b := 200;
|
||
|
|
c := 300;
|
||
|
|
|
||
|
|
test1 (1)
|