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 Les3
- {
- class Program
- {
- static void Main(string[] args)
- {
- Console.Write("Введите строку, разделяя символы пробелом: ");
- string newString = Console.ReadLine();
- string[] userInput = newString.Split(new char[] { ' ' });
- Console.Clear();
- Console.Write("Полученный массив: ");
- for(int i = 0; i < userInput.Length; i++)
- {
- Console.Write(userInput[i] + " ");
- }
- Console.WriteLine();
- Console.ReadKey();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement