Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace homeWorkSplit
- {
- internal class Program
- {
- static void Main(string[] args)
- {
- string userInput;
- Console.Write("Введите любой текст: ");
- userInput = Console.ReadLine();
- string[] words = userInput.Split(' ');
- foreach (string word in words)
- {
- Console.WriteLine(word);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement