Help me in solving SYNMCQ31 problem

My issue

Can you please share the explanation also. Here I can’t understand why other two condition are not printed.

Learning course: Learn C++
Problem Link: CodeChef: Practical coding for everyone

The other 2 is not printed because we have a as 10 and b as -10 . Thus the condition to print the other two will become false.