Last list item: Difference between revisions

Content added Content deleted
m (Algol 68 →‎With sorting)
m (Algol 68 →‎Without sorting: changed notes)
Line 69: Line 69:


===Without sorting===
===Without sorting===
Was a translation of the sorted Wren version but the sorting has been removed as per the revised task requirements.
Translation of the sorted Wren version with the sorting removed.
<lang algol68>BEGIN # find the last element after repeatedly adding the sum #
<lang algol68>BEGIN # find the last element after repeatedly adding the sum #
# of the two smallest elements and removing them #
# of the two smallest elements and removing them #