mirror of
https://github.com/ProgramSnail/Lama.git
synced 2025-12-06 06:48:48 +00:00
15 lines
No EOL
152 B
Text
15 lines
No EOL
152 B
Text
fun f (x) {
|
|
case x of
|
|
A -> write (1)
|
|
| B -> write (2)
|
|
| C -> write (3)
|
|
| _ -> write (4)
|
|
esac
|
|
}
|
|
|
|
x := read ();
|
|
|
|
f (A);
|
|
f (B);
|
|
f (C);
|
|
f (D) |