Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace Основы.Практика
- {
- class Program
- {
- static void Main()
- {
- string userString;
- string[] stringArray;
- Console.Write("Введите строку: ");
- userString = Console.ReadLine();
- stringArray = userString.Split(' ');
- Console.WriteLine();
- for (int i = 0; i < stringArray.Length; i++)
- {
- Console.WriteLine($"{stringArray[i]}");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement