Skip to content

Instantly share code, notes, and snippets.

@VladimirYus
Last active December 11, 2025 12:35
Show Gist options
  • Select an option

  • Save VladimirYus/b72effd0c4e52587ee6fc0310fa23a3a to your computer and use it in GitHub Desktop.

Select an option

Save VladimirYus/b72effd0c4e52587ee6fc0310fa23a3a to your computer and use it in GitHub Desktop.
Split
using System;
namespace Split
{
internal class Program
{
static void Main(string[] args)
{
string text = "Строка с несколькими словами, которую нужно разделить на слова и каждое слово с новой строки.";
string[] words = text.Split();
foreach (string word in words)
{
Console.WriteLine(word);
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment