Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Console.WriteLine(slovo.Split(' ').Length);
- string slovo2= slovo.Split(' ').Last();
- string slovo1 = slovo.Split()[0];
- slovo = slovo.Trim();
- string text = slovo.Remove(slovo1, slovo2);
- Console.WriteLine( text );
- // ... семистрочная строка
- string test1 = "0123456";
- // ... Начать удаление с 4го символа включительно
- string result1 = test1.Remove(3);
- // ... Показать "012"
- Console.WriteLine(result1);
Add Comment
Please, Sign In to add comment