Transcription: You can use an IF statement to alter the flow of control in a C++ program. Here, one of two assignment statements is executed. If A is greater than B, the value of A is assigned to the object X. If A is not greater than B, the value of B is assigned to X.