Jump to content

Dinesman's multiple-dwelling problem: Difference between revisions

m
added 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>
::* &nbsp; Baker does not live on the top floor.
::* &nbsp; Cooper does not live on the bottom floor.
::* &nbsp; Fletcher does not live on either the top or the bottom floor.
::* &nbsp; Miller lives on a higher floor than does Cooper.
::* &nbsp; Smith does not live on a floor adjacent to Fletcher's.
::* Fletcher does not live on a floor adjacent to Cooper's.<br><br>
 
 
''Where does everyone live?''<br>
<br><br>
Cookies help us deliver our services. By using our services, you agree to our use of cookies.