This preview has intentionally blurred sections. Sign up to view the full version.
View Full DocumentThis preview has intentionally blurred sections. Sign up to view the full version.
View Full DocumentThis preview has intentionally blurred sections. Sign up to view the full version.
View Full DocumentThis preview has intentionally blurred sections. Sign up to view the full version.
View Full DocumentThis preview has intentionally blurred sections. Sign up to view the full version.
View Full Document
Unformatted text preview: while ((w >= 2.0)  (q >= 4.0)) if x is less than 0, AND y is 10 or greater w is 2 or greater, OR q is 4 or greater int x = 4; cout << x ; yields 4 cout << ( x == 4 ); yields true however, in the computer, true is represented by 1, false is represented by 0 A B A && B F F F F T F T F F T T T A B A  B F F F F T T T F T T T T if (A && B) … both A AND B have to be true for the if statement to pass if (A  B) … EITHER A OR B have to be true for the if statement to pass bool B, S, W, A; // burglar, smoke, water, alarm A = B  S  W; // makes sense?...
View
Full Document
 Fall '09
 Logic, Equals sign, relational operator, Short answer program

Click to edit the document details