public static void Main(string[] args)
string text = "Строка1.?!Строка2!Строка3.Строка4?";
Console.WriteLine(PassGenerate(13));
public static void SymbolsCount()
Console.WriteLine("Введите строку");
string str = Console.ReadLine();
int symbols = str.Length;
Console.WriteLine("Кол-во символов с пробелами: {0}\nБез пробелов: {1}", symbols, symbols - str.Split(' ').Length + 1);
public static void Split(string text)
string[] mas = text.Split('.', '?', '!');
foreach (var item in mas)
public static void RegisterChange()
Console.WriteLine("Введите строку");
string str = Console.ReadLine();
Console.WriteLine("Выберите регистр, в который инвертировать строку:\n1 - Верхний\n2 - Нижний\n3 - Инвертировать регистр");
byte choice = Convert.ToByte(Console.ReadLine());
Console.WriteLine(str.ToUpper());
Console.WriteLine(str.ToLower());
char[] chr = str.ToCharArray();
foreach (var item in chr)
result += Char.ToUpper(item);
else if (Char.IsUpper(item))
result += Char.ToLower(item);
Console.WriteLine(result);
public static string PassGenerate(int passLength)
Random mran = new Random();
for (int i = 0; i < passLength; i++)
pass += (char)mran.Next(65, 90);