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