10 lines
180 B
ObjectPascal
10 lines
180 B
ObjectPascal
|
|
begin
|
||
|
|
var lst := new LinkedList<integer>(1..10);
|
||
|
|
var current := lst.First;
|
||
|
|
while current <> nil do
|
||
|
|
begin
|
||
|
|
Print(current.Value);
|
||
|
|
current := current.Next;
|
||
|
|
end;
|
||
|
|
end.
|