how to write else if statements in c++ code example Example: c++ how to do else if statements if (variable) { variable is true }