Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- char splitSymbol = ' ';
- string userInput;
- string[] wordsArray;
- Console.WriteLine("Введите строку текста:");
- userInput = Console.ReadLine();
- wordsArray = userInput.Split(splitSymbol);
- for (int i = 0; i < wordsArray.Length; i++)
- {
- Console.WriteLine(wordsArray[i]);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement