100 doors: Difference between revisions

Content added Content deleted
(Added an ACL2 solution.)
Line 3,790: Line 3,790:
if i = door and doors(door) = 1 then print i;" ";
if i = door and doors(door) = 1 then print i;" ";
next door
next door
next i</lang>
next i</lang>Output:
<pre>Open doors 1 4 9 16 25 36 49 64 81 100</pre>


=={{header|S-lang}}==
=={{header|S-lang}}==