Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
15
Task/Enumerations/Zonnon/enumerations.zonnon
Normal file
15
Task/Enumerations/Zonnon/enumerations.zonnon
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
module Enumerations;
|
||||
type
|
||||
Fruits = (apple,banana,cherry);
|
||||
|
||||
var
|
||||
deserts,i: Fruits;
|
||||
|
||||
begin
|
||||
deserts := Fruits.banana;
|
||||
writeln("ord(deserts): ",integer(deserts):2);
|
||||
|
||||
for i := Fruits.apple to Fruits.cherry do
|
||||
writeln(integer(i):2)
|
||||
end
|
||||
end Enumerations.
|
||||
Loading…
Add table
Add a link
Reference in a new issue