Printing the other result using the ternary operator