mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-08 21:28:14 +02:00
22 lines
292 B
ObjectPascal
22 lines
292 B
ObjectPascal
type
|
|
days = (sun,mon,tue,wed,thu,fri,sat);
|
|
workdays = mon..fri;
|
|
|
|
procedure t(d: workdays);
|
|
begin
|
|
case d of
|
|
mon: writeln('monday');
|
|
thu: writeln('thursday');
|
|
else
|
|
writeln('error');
|
|
end;
|
|
end;
|
|
|
|
var
|
|
d: workdays;
|
|
|
|
begin
|
|
d := thu;
|
|
t(d);
|
|
end.
|