Jump to content

100 doors: Difference between revisions

(Added an ACL2 solution.)
Line 3,790:
if i = door and doors(door) = 1 then print i;" ";
next door
next i</lang>Output:
<pre>Open doors 1 4 9 16 25 36 49 64 81 100</pre>
 
=={{header|S-lang}}==
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.