jetamors: Yoruichi is really hot (Default)
Jetamors ([personal profile] jetamors) wrote in [community profile] intro_to_cs 2010-01-11 12:10 am (UTC)

That's correct. This isn't a bug in the sense that the program won't run. The problem is that the code doesn't do what we want it to do: return the smallest number under every possible condition.

Consider a case where our intent is different: let's say we decide that if x is not less than y, then we don't care what z is. In that case, this code would be perfectly fine.

Post a comment in response:

This community only allows commenting by members. You may comment here if you're a member of intro_to_cs.
(will be screened if not on Access List)
(will be screened if not on Access List)
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting