A nested if statement is an if statement that is within another if statement
The statement that completes the code segment is amount1 > amount2
How to complete the nested if statement
From the question, we understand that:
- The condition is to check if amount1 is greater than 10
- Then check if amount2 is less than 100
If the above conditions are true, the following operations are to be done
- Print amount1 if it is greater than amount2
- Print amount2 if it is greater than amount1
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