A nested if statement is an if statement that is within another if statement
The statement that completes the code segment is amount1 > amount2
From the question, we understand that:
If the above conditions are true, the following operations are to be done
The statement that checks if amount1 is greater than amount2 is missing in the code segment
Using the given variables, the statement would be:
if (amount1 > amount2)
Hence, the statement that completes the code segment is amount1 > amount2
Read more about if statements at:
https://brainly.com/question/18736215