C#C
C#4y ago
maroonlol

Caesar Cipher Program - Display 'Invalid String' if the user enters a non-alphabetical character

https://github.com/AbdulRaheemNazir/MiniApps/blob/main/Encrypt%20Caesar%20Cipher

Hi,
I'm making a multifunctional program in C#. I have made a Caesar Cipher Encryption program and it works. However when I type in a string plus a non-alphabetical character to encrypt it encrypts the alphabetical values (which is good) and also displays the non-alphabetical character. I would want it so that if the user enters a non-alphabetical character in the string it will say to type a valid string but I'm unsure how to approach this. Any assistance would be greatly appreciated
image.png
GitHub
Contribute to AbdulRaheemNazir/MiniApps development by creating an account on GitHub.
Was this page helpful?