The following if statement determines whether choice is equal to Y or y: If (choice == 'Y'

Question:

The following if statement determines whether choice is equal to ‘Y’ or ‘y’: 

If (choice == 'Y' || choice == 'y')

Rewrite this statement so it makes only one comparison and does not use the || operator.  

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: