if (boolean expression) {
statements;
}
int x = 7; if (7 == x) cout << "x is 7" << endl; x = 14; cout << x << endl;
int age;
if (age < 18) {
cout << "You are a minor" << endl;
}
if (age >= 18) {
cout << "You are an adult" << endl;
}
int age;
if (age < 18) {
cout << "You are a minor" << endl;
} else {
cout << "You are an adult" << endl;
}