using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
string input = "";
string output = "";
string inputkey = "";
string key;
string p1 = "";
int c = 1;
//создание русского алфавита
char ch;
int n = 0;
char[] ru_mass = new char[32];
for (int i = 1072; i <= 1103; i++)
{
ch = System.Convert.ToChar(i);
ru_mass[n] = ch;
n++;
}
//Console.WriteLine(ru_mass);
Console.WriteLine("Введите сообщение");
input = Console.ReadLine();
Console.WriteLine("Введите ключ");
inputkey = Console.ReadLine();
if (input.Length < inputkey.Length)
Console.WriteLine("длина ключа не может быть больше длины сообщения");
else
{
for (int i = 0; i < ru_mass.Length; i++)
{
for (int j = 0; j < inputkey.Length; j++)
{
if (inputkey[j] == ru_mass[i])
{
key.SetValue(c, j);
c++;
}
}
}
}
}
}
}
Если Вы уже зарегистрированы на Портале - войдите в систему, если Вы еще не регистрировались - пройдите простую процедуру регистрации.