Advertisement
JohnJuly

Homework26

Dec 4th, 2023 (edited)
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.57 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace Homework26
  8. {
  9.     internal class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             string someText = "Кролики это не только ценный мех!";
  14.             string[] somewWords = someText.Split(new char[] { ' ' },StringSplitOptions.RemoveEmptyEntries);
  15.  
  16.             foreach (string word in somewWords)
  17.             {
  18.                 Console.WriteLine(word);
  19.             }
  20.         }
  21.     }
  22. }
  23.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement