Computer Science 1026A/B Chapter : Computer Science 1026 Topic 8.docx
terubarenuka and 39895 others unlocked
26
COMPSCI 1026A/B Full Course Notes
Verified Note
26 documents
Document Summary
Test: a boolean with condition(s) that equate to true or false, occurs before the body of the loop runs. Body of the loop: statements to be executed while the conditions is true, something within the body of the loop must change to change the result of the condition. Relational operators: greater than: , less than: , equal: =, not equal: !, greater than or equal: >, less than or equal: <= Expresses a boolean type condition that evaluates to true or false. When more than one condition needs to be tested, relational operators can be combined with logical operators. Since all conditions need to be true, it is unnecessary to continue if one condition is false: ex. (x > 0) && (x < 100) Since only one condition needs to be true, it is unnecessary to continue if one condition is true. True / false table for && and || in java.