Let your program make decisions.
In this video:
boolholdstrueorfalse, whichstd::coutprints as1and0bool value{};starts asfalse- Any number other than 0 becomes
true; 0 becomesfalse - Comparisons give a
bool:<,>,<=,>=and== //starts a comment: the compiler ignores the rest of the lineif (condition) { ... }runs the code in braces only when the condition is trueelse { ... }runs when it isn't