Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revisionBoth sides next revision | ||
184_notes:if [2022/05/06 22:02] – woodsna1 | 184_notes:if [2022/05/06 22:03] – [Else Clauses] woodsna1 | ||
---|---|---|---|
Line 18: | Line 18: | ||
quotient = 999999 | quotient = 999999 | ||
</ | </ | ||
- | In this code, the quotient will be set to some high number when the denominator is 0, instead of trying to calculate the true quotient. Code contained in else clauses only executes when the if statement' | + | In this code, the quotient will be set to some high number when the denominator is 0, instead of trying to calculate the true quotient. Code contained in else clauses only executes when the if statement' |
===== Nesting If Statements ===== | ===== Nesting If Statements ===== |