My program needs to print the mirror image of a letter that's input. All the letters will be input in uppercase. And the mirror image will be printed in uppercase.
So if I input A it's mirror image would be Z
if B, then Y
if C then X
if M then N.
My problem is coming up with an algorithm with the problem itself. I guess I could do several if statements or use switch, but I think that would be frowned upon. know there's 26 letters in the alphabet. I also know that the difference between the input and the mirror of all letters is odd and decreases by 2 from A to M ( or Z to N ) .
Any ideas?