public static string Decrypt(string input2)
foreach (char c in input2)
if ((c >= 'A' && c <= 'Z'))
else if ((c >= 'a' && c <= 'z'))
public static string Encrypt(string m){
if ((c >= 'A' && c <= 'Z'))
else if ((c >= 'a' && c <= 'z'))
public static void Main()
Console.WriteLine("Welcome to U9A3 - Encryption APP! Enter in a secret message:");
string m = Console.ReadLine();
string encrypted = Encrypt(m);
Console.WriteLine("The message after Encrypted is:");
Console.WriteLine(encrypted);
Console.WriteLine("Now input a message to decrypt:");
string input2 = Console.ReadLine();
string decrypted = Decrypt(input2);
Console.WriteLine("The message after decryption is:");
Console.WriteLine(decrypted);