100 doors: Difference between revisions

Content deleted Content added
m →‎{{header|REXX}}: added comments, add DO-END labels, removed blank lines. -- ~~~~
m →‎version 4, easy way, 1,000 doors: used vernacular wording. -- ~~~~
Line 3,633: Line 3,633:
</pre>
</pre>
===version 4, easy way, 1,000 doors===
===version 4, easy way, 1,000 doors===
Here is another easy-way solution (version 2), but for 1,000 doors.
Here's another easy-way solution (version 2), but for 1,000 doors.
<lang rexx>/*REXX program to solve the 100 door puzzle, the easy-way version 2.*/
<lang rexx>/*REXX program to solve the 100 door puzzle, the easy-way version 2.*/
parse arg doors . /*get the first argument (# of doors.) */
parse arg doors . /*get the first argument (# of doors.) */