oberonbyexample/examples/case/Case.Mod
Antranig Vartanian 95b512baf4
post rebranding
2024-05-11 19:17:23 +04:00

14 lines
317 B
Modula-2

MODULE case;
IMPORT Out, Modules;
BEGIN
CASE Modules.ArgCount - 1 OF
0 : Out.String("There are no arguments");
| 1 : Out.String("There is one argument");
| 2 : Out.String("There are two arguments");
ELSE Out.String("There are more than two arguments") END;
Out.Ln;
END case.