Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace Homework3_7
- {
- internal class Program
- {
- static void Main(string[] args)
- {
- string sentence = "Сегодня хороший день, чтобы погулять.";
- char[] separators = new char[] { ' ', '.', ',' };
- string[] words = sentence.Split(separators, StringSplitOptions.RemoveEmptyEntries);
- Console.WriteLine(sentence + "\n");
- foreach (string word in words)
- {
- Console.WriteLine(word);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement