Comparing values
Read · 1 of 4
Questions with yes/no answers
== asks "equal?" (two equals signs: one = means store). != asks "not equal?". Then <, >, <=, >=.
Combine questions with && (and), || (or) and ! (not). The answer is true or false, which cout prints as 1 or 0.