Date: 2010-01-11 12:10 am (UTC)
jetamors: Yoruichi is really hot (Default)
From: [personal profile] jetamors
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.
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

Profile

Introduction to Computer Science

July 2010

S M T W T F S
    123
45678910
11121314151617
18192021222324
2526272829 3031

Style Credit

Expand Cut Tags

No cut tags
Page generated Jul. 6th, 2025 04:55 pm
Powered by Dreamwidth Studios