if (condition) {
// block of code to be executed if the condition is true
}
1 == 2 || 4
if (condition) {
// body of if statement
}
if(condition)
{
// Statements to execute if
// condition is true
}
int x = 20;
int y = 18;
if (x > y) {
cout << "x is greater than y";
}
int time = 20;
string result = (time < 18) ? "Good day." : "Good evening.";
cout << result;