Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Text;
- namespace _02._Deciphering
- {
- class Program
- {
- static void Main(string[] args)
- {
- string input = Console.ReadLine();
- string[] comand = Console.ReadLine().Split(" ");
- int count = 0;
- for (int i = 0; i < input.Length; i++)
- {
- if (!((input[i] >= 100 && input[i] <= 125) || input[i] == 35))
- {
- Console.WriteLine("This is not the book you are looking for.");
- return;
- }
- count++;
- }
- StringBuilder result = new StringBuilder();
- for (int j = 0; j < input.Length; j++)
- {
- result.Append((char)((int)input[j] - 3));
- }
- result = result.Replace(comand[0], comand[1]);
- Console.WriteLine(result);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement