using System.Collections.Generic;
using System.Threading.Tasks;
namespace GaderypolukiSzyfrowanieProgram
static void Main(string[] args)
string[] Table = { "G", "A", "D", "E", "R", "Y", "P", "O", "L", "U", "K", "I" };
Console.WriteLine("Prosze wpisac tekst do zaszfrowania *(duze litery)");
string Text = Console.ReadLine();
for (int x = 0; x < Text.Length; x++)
for (int y = 0; y < Table.Length; y++)
if (Text[x].ToString().Equals(Table[y]) == true)
EncodedText += Table[y + 1];
EncodedText += Table[y - 1];
if (Text[x].ToString().Equals(Table[y]) == false && y == Table.Length - 1)
Console.WriteLine(EncodedText);