Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace DecryptingMessage
- {
- class Program
- {
- static void Main(string[] args)
- {
- int key = int.Parse(Console.ReadLine());
- int num = int.Parse(Console.ReadLine());
- string print = string.Empty;
- for (int i = 0; i < num; i++)
- {
- int current = char.Parse(Console.ReadLine());
- print += (char)(current + key);
- }
- Console.WriteLine(print);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement