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