Created
June 29, 2024 19:04
-
-
Save MagSosiq/a3eac568478f399b95f68a634e54c360 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Text; | |
namespace HW1 | |
{ | |
internal class Program | |
{ | |
static void Main(string[] args) | |
{ | |
Console.InputEncoding = Encoding.Unicode; | |
Console.OutputEncoding = Encoding.Unicode; | |
string text = "Сегодня было так жарко что я уже видел передо мной всеотца протягивающего мне воду!"; | |
string[] words = text.Split(' '); | |
foreach (var word in words) | |
{ | |
Console.WriteLine($"Слова в массиве: {word}"); | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment