I am trying to write a loop that encrypts and decrypts a string and will cycle again when you tell it to. The problem is that when there is a space in the input string it does not decrypt the rest of the code and when you input to run or stop the program again it becomes an infinite loop. How do I fix this.
On lines 59, 61, and 66 you seem to be treading r like a character, but on lines 10, 63, 68, and 73 you're treating it like a boolean. Make up your mind or use an additional variable.