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 Clight_52_Split
- {
- class Program
- {
- static void Main(string[] args)
- {
- string text = "Напишем слова каждое на новой строке.";
- string[] words;
- char splitter = ' ';
- words = text.Split(splitter);
- foreach (var word in words)
- {
- Console.WriteLine($"{word}");
- }
- Console.ReadKey();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement