if loop in cpp code example Example: c++ if example if (20 > 18) { cout << "20 is greater than 18"; }