What Was Your First Programming Language?
|
07-09-2015, 12:29 PM
Post: #100
|
|||
|
|||
RE: What Was Your First Programming Language?
(07-09-2015 12:14 PM)Sylvain Cote Wrote: Right, but to respect the same logic your line will have to modified like this (07-09-2015 07:16 AM)Les Bell Wrote: As you point out, there's no need to test for both > and < in the central loop; if the code gets there, the guess can't equal the number, so if it's not greater it must be less. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)