If statement not working

I am creating a simple program that sorts numbers in descending order, and I have it so that it outputs the sorting to the screen, but I want to give the user the option to see the sorting process. Now the process works, but when the user inputs y/Y or n/N the program shows the sorting process, when it should only show it when the reply is y/Y.