Anonymous user
Dinesman's multiple-dwelling problem: Difference between revisions
Dinesman's multiple-dwelling problem (view source)
Revision as of 15:36, 21 September 2020
, 3 years agoadded whitespace.
(→{{header|REXX}}: split compound DO statements (1 per line), added/changed whitespace and comments, use a template for the output section.) |
m (added whitespace.) |
||
Line 14:
;The problem
Baker, Cooper, Fletcher, Miller, and Smith live on different floors of an apartment house that contains only five floors.<br>
::* Baker does not live on the top floor.
::* Cooper does not live on the bottom floor.
::* Fletcher does not live on either the top or the bottom floor.
::* Miller lives on a higher floor than does Cooper.
::* Smith does not live on a floor adjacent to Fletcher's.
::* Fletcher does not live on a floor adjacent to Cooper's.
''Where does everyone live?''<br>
<br><br>
|