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 HW
- {
- class Program
- {
- static void Main(string[] args)
- {
- string text = "У нас есть шутка про одного жителя Санкт-Петербурга, но она состоит из нескольких частей...";
- string[] words = text.Split(' ');
- foreach (var word in words)
- {
- Console.WriteLine($"Слово: {word}");
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment