#include <iostream> using namespace std; int main() { bool b; b = false; cout << "b is " << b << "\n"; b = true; cout << "b is " << b << "\n"; if(b) cout << "This is executed.\n"; b = false; if(b) cout << "This is not executed.\n"; return 0; }
b is 0 b is 1 This is executed. 10 > 9 is 1