{"id":359164,"date":"2024-05-21T00:26:52","date_gmt":"2024-05-21T00:26:52","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=359164"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=359164","title":{"rendered":"<span>\u041a\u0430\u043a \u044f \u043f\u0438\u0441\u0430\u043b\u0430 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 \u043d\u0430 C#, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0448\u0438\u0444\u0440\u0443\u0435\u0442 \u0442\u0435\u043a\u0441\u0442 \u043f\u043e \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0443 \u00ab\u041a\u0432\u0430\u0434\u0440\u0430\u0442 \u041f\u043e\u043b\u0438\u0431\u0438\u044f\u00bb<\/span>"},"content":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u0412 \u0414\u0440\u0435\u0432\u043d\u0435\u0439 \u0413\u0440\u0435\u0446\u0438\u0438 (2 \u0432\u0435\u043a \u0434\u043e \u043d.\u044d.) \u0431\u044b\u043b \u0438\u0437\u0432\u0435\u0441\u0442\u0435\u043d \u0448\u0438\u0444\u0440, \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u043c\u044b\u0439 &#171;\u041a\u0432\u0430\u0434\u0440\u0430\u0442 \u041f\u043e\u043b\u0438\u0431\u0438\u044f&#187;. \u0428\u0438\u0444\u0440\u043e\u0432\u0430\u043b\u044c\u043d\u0430\u044f \u0442\u0430\u0431\u043b\u0438\u0446\u0430 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u043b\u0430 \u0441\u043e\u0431\u043e\u0439 \u043a\u0432\u0430\u0434\u0440\u0430\u0442 \u0441 \u043f\u044f\u0442\u044c\u044e \u0441\u0442\u043e\u043b\u0431\u0446\u0430\u043c\u0438 \u0438 \u043f\u044f\u0442\u044c\u044e \u0441\u0442\u0440\u043e\u043a\u0430\u043c\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0443\u043c\u0435\u0440\u043e\u0432\u0430\u043b\u0438\u0441\u044c \u0446\u0438\u0444\u0440\u0430\u043c\u0438 \u043e\u0442 1 \u0434\u043e 5. \u0412 \u043a\u0430\u0436\u0434\u0443\u044e \u043a\u043b\u0435\u0442\u043a\u0443 \u0442\u0430\u043a\u043e\u0433\u043e \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u0430 \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u043b\u0430\u0441\u044c \u043e\u0434\u043d\u0430 \u0431\u0443\u043a\u0432\u0430. \u0412 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u043a\u0430\u0436\u0434\u043e\u0439 \u0431\u0443\u043a\u0432\u0435 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043e\u0432\u0430\u043b\u0430 \u043f\u0430\u0440\u0430 \u0447\u0438\u0441\u0435\u043b, \u0438 \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0441\u0432\u043e\u0434\u0438\u043b\u043e\u0441\u044c \u043a \u0437\u0430\u043c\u0435\u043d\u0435 \u0431\u0443\u043a\u0432\u044b \u043f\u0430\u0440\u043e\u0439 \u0447\u0438\u0441\u0435\u043b. \u0414\u043b\u044f \u043b\u0430\u0442\u0438\u043d\u0441\u043a\u043e\u0433\u043e \u0430\u043b\u0444\u0430\u0432\u0438\u0442\u0430 &#171;\u041a\u0432\u0430\u0434\u0440\u0430\u0442 \u041f\u043e\u043b\u0438\u0431\u0438\u044f&#187; \u0438\u043c\u0435\u0435\u0442 \u0432\u0438\u0434:<\/p>\n<p>        1      2      3      4       5<\/p>\n<p> 1ABCDE<br \/> 2FGHJ,IK<br \/> 3LMNOP<br \/> 4QRSTU<br \/> 5VWXYZ<\/p>\n<p>\u0418 \u043c\u043d\u0435 \u043d\u0443\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043c\u043e\u0433\u043b\u0430 \u0434\u0435\u043b\u0430\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435:<br \/> \u0430) \u0417\u0430\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u0442\u044c \u0432\u0432\u0435\u0434\u0435\u043d\u043d\u044b\u0439 \u0442\u0435\u043a\u0441\u0442 \u0438\u0437 \u043a\u043e\u043d\u0441\u043e\u043b\u0438 \u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0435\u0433\u043e \u0432 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0439 \u0444\u0430\u0439\u043b;<br \/> \u0431) \u0421\u0447\u0438\u0442\u0430\u0435\u0442 \u0437\u0430\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0442\u0435\u043a\u0441\u0442 \u0438\u0437 \u0444\u0430\u0439\u043b\u0430 \u0438 \u0440\u0430\u0441\u0448\u0438\u0444\u0440\u0443\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0439 \u0442\u0435\u043a\u0441\u0442 \u0432\u044b\u0432\u0435\u0434\u044f \u0435\u0433\u043e \u043d\u0430 \u043a\u043e\u043d\u0441\u043e\u043b\u044c.<\/p>\n<p>\u0412\u043e\u043e\u0431\u0449\u0435 &#171;\u041a\u0432\u0430\u0434\u0440\u0430\u0442 \u041f\u043e\u043b\u0438\u0431\u0438\u044f&#187; \u043c\u043e\u0436\u0435\u0442 \u0438\u043c\u0435\u0442\u044c \u0440\u0430\u0437\u043d\u044b\u0439 \u0432\u0438\u0434, \u043d\u043e \u0441\u0435\u0433\u043e\u0434\u043d\u044f \u043f\u043e\u0433\u043e\u0432\u043e\u0440\u0438\u043c \u043e \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u0441 \u0434\u0430\u043d\u043d\u043e\u0439 \u0440\u0430\u043d\u0435\u0435 \u0442\u0430\u0431\u043b\u0438\u0446\u0435. \u041c\u044b \u0431\u0443\u0434\u0435\u043c \u0434\u0435\u043b\u0430\u0442\u044c \u043d\u0430\u0448\u0443 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 \u0432 Visual Studio 2019, \u043d\u043e \u0434\u043b\u044f \u043a\u0430\u043a\u0438\u0445-\u043d\u0438\u0431\u0443\u0434\u044c 2020 \u0438 \u0442.\u043f. \u0442\u043e\u0436\u0435 \u043f\u043e\u0434\u043e\u0439\u0434\u0435\u0442.<\/p>\n<p>!!!\u0412\u0441\u0435 \u0431\u0443\u043a\u0432\u044b \u0431\u0443\u0434\u0443\u0442 \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c\u0441\u044f \u0438\u0441\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043a\u0430\u043f\u0441\u043b\u043e\u043a\u043e\u043c \u0432 \u044d\u0442\u043e\u0439 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0435, \u0442.\u0435. \u0435\u0441\u043b\u0438 \u0432\u044b \u0437\u0430\u043f\u043e\u043b\u043d\u0438\u0442\u0435 \u043c\u0430\u0441\u0441\u0438\u0432 \u0431\u0443\u043a\u0432\u0430\u043c\u0438 \u0441 \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u043e\u0439 \u0431\u0443\u043a\u0432\u044b, \u0442\u043e \u0431\u0443\u043a\u0432\u044b \u0441 \u043a\u043e\u043d\u0441\u043e\u043b\u0438 \u0431\u0443\u0434\u0443\u0442 \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c\u0441\u044f \u0438\u0441\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0441 \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u043e\u0439 \u0431\u0443\u043a\u0432\u044b!!!<\/p>\n<p>\u0418 \u0442\u0430\u043a, \u043d\u0430\u043c \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u043d\u0443\u0436\u043d\u044b \u0431\u0443\u0434\u0443\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438:<\/p>\n<p><code>System;\/\/\u043e\u0441\u043d\u043e\u0432\u043d\u0430\u044f<br \/>System.Collections.Generic;\/\/\u043e\u0441\u043d\u043e\u0432\u043d\u0430\u044f<br \/>System.Linq;\/\/\u043e\u0441\u043d\u043e\u0432\u043d\u0430\u044f<br \/>System.Text;\/\/\u043e\u0441\u043d\u043e\u0432\u043d\u0430\u044f<br \/>System.Threading.Tasks;\/\/\u043e\u0441\u043d\u043e\u0432\u043d\u0430\u044f<br \/>System.IO;\/\/\u0434\u043b\u044f \u0437\u0430\u043f\u0438\u0441\u0438 \u0438 \u0447\u0442\u0435\u043d\u0438\u044f \u0444\u0430\u0439\u043b\u0430<br \/>System.Threading;\/\/\u043e\u0441\u043d\u043e\u0432\u043d\u0430\u044f<\/code><\/p>\n<p>\u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u043c\u044b \u0432 \u043a\u043b\u0430\u0441\u0441\u0435 \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0434\u0432\u0443\u043c\u0435\u0440\u043d\u044b\u0439 \u043c\u0430\u0441\u0441\u0438\u0432 \u0434\u043b\u044f \u0431\u0443\u043a\u0432 \u0438\u0437 \u0442\u0430\u0431\u043b\u0438\u0446\u044b, \u0441\u0442\u0440\u043e\u0447\u043a\u0443 \u0434\u043b\u044f \u0447\u0442\u0435\u043d\u0438\u044f \u0441\u043b\u043e\u0432 \u0441 \u043a\u043e\u043d\u0441\u043e\u043b\u0438 \u0438 \u0442\u0440\u0438 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435, \u043f\u0435\u0440\u0432\u0430\u044f \u0434\u043b\u044f \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u0433\u043e \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f \u0434\u0432\u0443\u0445 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0445, \u0432\u0442\u043e\u0440\u0430\u044f \u0434\u043b\u044f \u0443\u043a\u0430\u0437\u0430\u043d\u0438\u044f \u043f\u0443\u0442\u0438 \u043a \u043d\u0443\u0436\u043d\u043e\u043c\u0443 \u0444\u0430\u0439\u043b\u0443, \u0430 \u0442\u0440\u0435\u0442\u044c\u044f \u0441\u0430\u043c\u043e \u043d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435 \u0444\u0430\u0439\u043b\u0430 \u0438 \u0435\u0433\u043e \u0444\u043e\u0440\u043c\u0430\u0442. \u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0439 (txt).<\/p>\n<p>\u0412\u043e\u0442 \u043a\u0430\u043a \u044d\u0442\u043e \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442:<\/p>\n<pre><code class=\"cs\">string[,] tableEng = new string[,]         {             { \"A\", \"B\", \"C\", \"D\",\"E\" },             { \"F\", \"G\", \"H\", \"I\", \"K\" },             { \"L\", \"M\", \"N\", \"O\", \"P\" },             { \"Q\", \"R\", \"S\", \"T\", \"U\" },             { \"V\", \"W\", \"X\", \"Y\", \"Z\" },         };         string text;         string filePath;         string path = @\"D:\\\\\u0422\u042b \u0425\u041e\u0427\u0415\u0428\u042c \u0427\u0422\u041e \u041b\u0418 \u0411\u0410\u041e\u0411\u0410\u0411 \u041d\u0410\u0419\u0422\u0418\\\\\";         string file = @\"\\\\\u043f\u0430\u043c\u044f\u0442\u044c.txt\";<\/code><\/pre>\n<p>\u0417\u0430\u0442\u0435\u043c \u0432 \u043a\u043b\u0430\u0441\u0441\u0435 \u043c\u044b \u043e\u0431\u044a\u044f\u0432\u043b\u044f\u0435\u043c \u043f\u0443\u0431\u043b\u0438\u0447\u043d\u044b\u0439 \u043c\u0435\u0442\u043e\u0434, \u0433\u0434\u0435 \u0443\u0436\u0435 \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u0432\u043e\u0439 \u043a\u043e\u0434. \u042f \u0435\u0433\u043e \u043d\u0430\u0437\u0432\u0430\u043b\u0430 \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u043e\u043c \u043f\u043e\u043b\u0438\u0431\u0438\u044f, \u043d\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e \u0430\u043d\u0433\u043b\u0438\u0439\u0441\u043a\u0438\u0439, \u0430 \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043d\u0430\u0437\u0432\u0430\u0442\u044c \u0435\u0433\u043e \u043f\u043e \u0434\u0440\u0443\u0433\u043e\u043c\u0443, \u043d\u043e \u0442\u0430\u043a \u0447\u0442\u043e\u0431\u044b \u043a\u0430\u0436\u0434\u044b\u0439 \u043f\u0440\u0438 \u043e\u0434\u043d\u043e\u043c \u0435\u0433\u043e \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0438 \u0441\u043c\u043e\u0433 \u043f\u043e\u043d\u044f\u0442\u044c \u0437\u0430 \u0447\u0442\u043e \u044d\u0442\u043e\u0442 \u043a\u0443\u0441\u043e\u043a \u043a\u043e\u0434\u0430 \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442.<\/p>\n<p>\u0412\u044b\u0432\u043e\u0434\u0438\u043c \u043d\u0430 \u043a\u043e\u043d\u0441\u043e\u043b\u044c \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044e, \u0430 \u043d\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u0441\u0442\u0440\u043e\u043a\u0435 \u0441\u043e\u0435\u0434\u0438\u043d\u044f\u0435\u043c \u043d\u0443\u0436\u043d\u044b\u0435 \u043d\u0430\u043c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0432 \u043e\u0434\u043d\u0443 \u0434\u043b\u044f \u0443\u043a\u0430\u0437\u0430\u043d\u0438\u044f \u043d\u0443\u0436\u043d\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430.<\/p>\n<p>\u0417\u0430\u0442\u0435\u043c \u043c\u044b \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u0435\u043c \u043d\u0430\u0447\u0430\u043b\u043e \u0437\u0430\u043f\u0438\u0441\u0438 \u0441 \u043a\u043e\u043d\u0441\u043e\u043b\u0438 \u0434\u0430\u043d\u043d\u044b\u0445(\u0431\u0443\u043a\u0432) \u0438 \u0432 \u0442\u0435\u043b\u0435 \u043c\u0435\u0442\u043e\u0434\u0430 \u043c\u044b \u043f\u0438\u0448\u0435\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435:<\/p>\n<p> \u2981\u041e\u0431\u044a\u044f\u0432\u043b\u044f\u0435\u043c \u0446\u0438\u043a\u043b while \u0434\u043b\u044f \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u044f \u0432\u0432\u043e\u0434\u0430 \u043d\u0443\u0436\u043d\u044b\u0445 \u0441\u043b\u043e\u0432, \u0442.\u0435. \u0441\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u043c \u0434\u0430\u043d\u043d\u044b\u0435 \u0441 \u043a\u043e\u043d\u0441\u043e\u043b\u0438 \u0434\u043e \u0442\u0435\u0445 \u043f\u043e\u0440 \u043f\u043e\u043a\u0430 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u043d\u0435 \u0432\u0432\u0435\u0434\u0435\u0442 * \u0438 \u043d\u0435 \u0442\u044b\u043a\u043d\u0435\u0442 \u0435\u043d\u0442\u0435\u0440,<\/p>\n<p> \u2981\u0421\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u043c \u0434\u0430\u043d\u043d\u044b\u0435 \u0441 \u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u044b,<\/p>\n<p> \u2981\u0421 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Split \u0440\u0430\u0437\u0434\u0435\u043b\u044f\u0435\u043c \u0441\u043b\u043e\u0432\u0430 \u043d\u0430 \u0438 \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0435\u0433\u043e \u0432 \u043c\u0430\u0441\u0441\u0438\u0432 m,<\/p>\n<p>C \u043f\u043e\u043c\u043e\u0449\u044c\u044e Split \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0441 \u0441\u0442\u0440\u043e\u043a\u0438 \u0443\u0434\u0430\u043b\u044f\u0442\u044c \u043f\u0440\u043e\u0431\u0435\u043b\u044b, \u0441\u0438\u043c\u0432\u043e\u043b\u044b, \u0437\u043d\u0430\u043a\u0438 \u043f\u0440\u0435\u043f\u0438\u043d\u0430\u043d\u0438\u044f, \u0430 \u0442\u0430\u043a\u0436\u0435 \u043d\u0435 \u043d\u0443\u0436\u043d\u044b\u0435 \u043d\u0430\u043c \u0431\u0443\u043a\u0432\u044b. \u0418 \u044d\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043a\u0430\u043a \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u043e \u043d\u0438\u0436\u0435:<\/p>\n<pre><code class=\"cs\">string[] words = line.Split(' ', ',', '.', '-', '=', '+', '!', '?', '^', '&amp;');<\/code><\/pre>\n<p> \u2981\u0421 \u043f\u043e\u043c\u043e\u0449\u044c\u044e foreach \u043c\u044b \u043f\u0435\u0440\u0435\u0431\u0438\u0440\u0430\u0435\u043c \u0442\u0435\u043a\u0441\u0442 \u0438\u0437 \u043c\u0430\u0441\u0441\u0438\u0432\u0430,<\/p>\n<p> \u2981\u0410 \u0432 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c foreach \u043c\u044b \u043f\u0435\u0440\u0435\u0431\u0438\u0440\u0430\u0435\u043c \u0442\u0435\u043a\u0441\u0442 \u0443\u0436\u0435 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u0434\u043b\u044f \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432, \u044d\u0442\u043e \u043d\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u0434\u043b\u044f \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044f \u0431\u0443\u043a\u0432 \u0441 \u0431\u0443\u043a\u0432\u0430\u043c\u0438 \u0438\u0437 \u043c\u0430\u0441\u0441\u0438\u0432\u0430 tableEng,<\/p>\n<p>\u2981\u0422\u0435\u043f\u0435\u0440\u044c \u043c\u044b \u043f\u0435\u0440\u0435\u0431\u0438\u0440\u0430\u0435\u043c \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0446\u0438\u043a\u043b\u043e\u0432 for \u043c\u0430\u0441\u0441\u0438\u0432 tableEng, \u0434\u0435\u043b\u0430\u0435\u043c \u0446\u0438\u043a\u043b \u0432 \u0446\u0438\u043a\u043b\u0435. \u0422.\u043a. \u0443 \u043d\u0430\u0441 \u043c\u0430\u0441\u0441\u0438\u0432 \u0434\u0432\u0443\u043c\u0435\u0440\u043d\u044b\u0439, \u0442\u043e \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0438\u043c\u0435\u043d\u043d\u043e \u0434\u0432\u0430 \u0446\u0438\u043a\u043b\u0430 \u0434\u043b\u044f \u043f\u0435\u0440\u0435\u0431\u043e\u0440\u0430 \u0434\u0432\u0443\u0445 \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u0439 \u0432 \u043d\u0435\u043c. \u0410 \u0432 \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0438, \u0432 \u0446\u0438\u043a\u043b\u0430\u0445, \u0433\u0434\u0435 \u043c\u044b \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e i \u0441\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u0435\u043c \u0441 \u043c\u0430\u0441\u0441\u0438\u0432\u043e\u043c, \u0432\u043c\u0435\u0441\u0442\u043e Length \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c GetLength(), \u0442.\u043a. Length \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u043e\u0434\u043d\u043e\u043c\u0435\u0440\u043d\u044b\u0445 \u043c\u0430\u0441\u0441\u0438\u0432\u043e\u0432, \u0430 GetLength() \u0434\u043b\u044f \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u0439 \u043c\u043d\u043e\u0433\u043e\u043c\u0435\u0440\u043d\u044b\u0445 \u043c\u0430\u0441\u0441\u0438\u0432\u043e\u0432,<\/p>\n<p>Length &#8212; \u0434\u043b\u044f \u0434\u043b\u0438\u043d\u044b \u043e\u0434\u043d\u043e\u043c\u0435\u0440\u043d\u044b\u0445 \u043c\u0430\u0441\u0441\u0438\u0432\u043e\u0432<\/p>\n<p>GetLength() &#8212; \u0434\u043b\u044f \u0434\u043b\u0438\u043d\u044b \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u043d\u0438\u0439 \u043c\u043d\u043e\u0433\u043e\u043c\u0435\u0440\u043d\u044b\u0439 \u043c\u0430\u0441\u0441\u0438\u0432\u043e\u0432, \u0432 \u043d\u0430\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0434\u0432\u0443\u043c\u0435\u0440\u043d\u044b\u043c. \u0415\u0441\u043b\u0438 \u0432 \u0441\u043a\u043e\u0431\u043e\u0447\u043a\u0430\u0445 \u043d\u0430\u043f\u0438\u0448\u0435\u043c 0, \u0442\u043e \u044d\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u0434\u043b\u0438\u043d\u0430 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u044f, \u0435\u0441\u043b\u0438 1, \u0442\u043e \u0432\u0442\u043e\u0440\u043e\u0433\u043e \u0438 \u0442.\u0434.<\/p>\n<p> \u2981\u0418 \u043f\u0438\u0448\u0435\u043c \u043f\u0435\u0440\u0432\u043e\u0435 \u0443\u0441\u043b\u043e\u0432\u0438\u0435 \u0432 if. \u0415\u0441\u043b\u0438 \u0432 \u043c\u0430\u0441\u0441\u0438\u0432\u0435 \u043a\u0430\u043a\u043e\u0439-\u0442\u043e \u0438\u0437 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u043c\u0430\u0441\u0441\u0438\u0432\u0430 tableEng \u0440\u0430\u0432\u0435\u043d \u0441\u0438\u043c\u0432\u043e\u043b\u0443 \u0438\u0437 \u0441\u0442\u0440\u043e\u043a\u0438, \u0442\u043e \u043f\u0440\u0438\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043a i + 1 \u0438 \u0442\u043e\u0436\u0435 \u0441\u0430\u043c\u043e\u0435 \u043a j + 1. \u0414\u0430\u043b\u0435\u0435 \u0432\u044b\u0432\u043e\u0434\u0438\u043c \u0432\u0441\u0435 \u043d\u0430 \u043a\u043e\u043d\u0441\u043e\u043b\u044c,<\/p>\n<p> \u2981\u0410 \u0432\u043d\u0443\u0442\u0440\u0438 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0443\u0441\u043b\u043e\u0432\u0438\u044f \u043f\u0438\u0448\u0435\u043c \u0432\u0442\u043e\u0440\u043e\u0435 \u0434\u043b\u044f \u0441\u0430\u043c\u043e\u0433\u043e \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0446\u0438\u043a\u043b\u0430 while. \u0415\u0441\u043b\u0438 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f text \u0440\u0430\u0432\u043d\u0430 *, \u0442\u043e \u0446\u0438\u043a\u043b \u043f\u0440\u0435\u043a\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f, \u0430 \u0434\u0430\u043d\u043d\u044b\u0435 \u0441 \u043a\u043e\u043d\u0441\u043e\u043b\u0438 \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u0432 \u0444\u0430\u0439\u043b.<\/p>\n<p>\u0412\u043e\u0442 \u043a\u0430\u043a \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043a\u043e\u0434:<\/p>\n<pre><code class=\"cs\">Console.WriteLine(\"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0442\u0435\u043a\u0441\u0442(\u0442\u043e\u043b\u044c\u043a\u043e \u043a\u0430\u043f\u0441\u043b\u043e\u043a\u043e\u043c!!!!), \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0445\u043e\u0442\u0438\u0442\u0435 \u0437\u0430\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u0442\u044c(\u0434\u043b\u044f \u0432\u044b\u0445\u043e\u0434\u0430 * \u0438 \u0435\u043d\u0442\u0435\u0440): \");             filePath = Path.Combine(\"D:\\\\\", path + file);             \/\/\u0437\u0434\u0435\u0441\u044c \u0437\u0430\u0448\u0438\u0444\u0440\u043e\u0432\u044b\u0432\u0430\u044e \u0442\u0435\u043a\u0441\u0442 \u043f\u043e \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u0443 \u043f\u043e\u043b\u0438\u0431\u0438\u044f \u0438 \u0448\u0438\u0444\u0440\u043e\u0432\u043a\u0443 \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u044e \u0432 \u0444\u0430\u0439\u043b            using (StreamWriter streamWriter = new StreamWriter(filePath, true, Encoding.UTF8)) \/\/\u044d\u0442\u043e \u0441\u0442\u0440\u0430\u043a\u0430 \u0434\u043b\u044f \u0437\u0430\u043f\u0438\u0441\u0438 \u0434\u0430\u043d\u043d\u044b\u0445 \u0441 \u043a\u043e\u043d\u0441\u043e\u043b\u0438 \u0432 \u0444\u0430\u0439\u043b            {                  while (text != \"*\")                  {                      text = Console.ReadLine();                      string[] m = text.Split(' ');                      foreach (string letter in m)                      {                          foreach (char c in letter)                          {                              for (int i = 0; i &lt; tableEng.GetLength(0); i++)                              {                                  for (int j = 0; j &lt; tableEng.GetLength(1); j++)                                  {                                      if (tableEng[i, j] == c.ToString())                                      {                                          int result = i + 1;                                          int resu = j + 1;                                          Console.WriteLine($\"{i + 1}{j + 1} \");                                          if (text == \"*\") break;                                          streamWriter.Write($\" {result}{resu} \");                                      }                                   }                              }                          }                      }                  }            }<\/code><\/pre>\n<p>\u0414\u0430\u043b\u0435\u0435 \u043c\u044b \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u0435\u043c \u043d\u0430\u0447\u0430\u043b\u043e \u0447\u0442\u0435\u043d\u0438\u044f \u0441 \u0444\u0430\u0439\u043b\u0430 \u0434\u0430\u043d\u043d\u044b\u0445(\u0431\u0443\u043a\u0432) \u0438 \u0432 \u0442\u0435\u043b\u0435 \u043c\u044b \u043f\u0438\u0448\u0435\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435:<\/p>\n<p> \u2981\u041e\u0431\u044a\u044f\u0432\u043b\u044f\u0435\u043c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e \u0434\u043b\u044f \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u0433\u043e \u0447\u0442\u0435\u043d\u0438\u044f \u0441\u0442\u0440\u043e\u043a \u0438\u0437 \u0444\u0430\u0439\u043b\u0430,<\/p>\n<p> \u2981\u041e\u0431\u044a\u044f\u0432\u043b\u044f\u0435\u043c \u0446\u0438\u043a\u043b while, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u043c\u044b \u0441\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u043c \u0441\u0442\u0440\u043e\u043a\u0438 \u0441 \u0444\u0430\u0439\u043b\u0430 \u0434\u043e \u0442\u0435\u0445 \u043f\u043e\u0440, \u043f\u043e\u043a\u0430 \u043e\u043d\u0438 \u043d\u0435 \u0431\u0443\u0434\u0443\u0442 \u0440\u0430\u0432\u043d\u044b \u043d\u0443\u043b\u044e, \u0442.\u0435. \u043f\u043e\u043a\u0430 \u043d\u0435 \u0437\u0430\u043a\u043e\u043d\u0447\u0430\u0442\u0441\u044f,<\/p>\n<p> \u2981\u0414\u0430\u043b\u0435\u0435 \u043c\u044b \u043e\u0431\u044a\u044f\u0432\u043b\u044f\u0435\u043c \u043c\u0430\u0441\u0441\u0438\u0432 words \u0438 \u0432 \u043d\u0435\u043c \u0440\u0430\u0437\u0434\u0435\u043b\u044f\u0435\u043c \u0441\u0442\u0440\u043e\u043a\u0438 \u043d\u0430 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0435 \u0441\u043b\u043e\u0432\u0430 \u0438 \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0432 \u043d\u0435\u0433\u043e,<\/p>\n<p> \u2981\u0412 \u0446\u0438\u043a\u043b\u0435 foreach \u043c\u044b \u043f\u0435\u0440\u0435\u0431\u0438\u0440\u0430\u0435\u043c \u0441\u0438\u043c\u0432\u043e\u043b\u044b \u0438\u0437 \u043c\u0430\u0441\u0441\u0438\u0432\u0430 words. \u0418 \u0432 \u044d\u0442\u043e\u043c \u0446\u0438\u043a\u043b\u0435 \u043c\u044b \u0432\u044b\u0432\u043e\u0434\u0438\u043c \u0434\u0430\u043d\u043d\u044b\u0435 \u0438\u0437 \u0444\u0430\u0439\u043b\u0430. \u0410 \u0442\u0430\u043a\u0436\u0435 \u043c\u044b \u0441\u0438\u043c\u0432\u043e\u043b\u044b \u0438\u0437 \u0444\u0430\u0439\u043b\u0430 \u0441\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u0435\u043c \u0441 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u043c\u0438 \u0441\u0438\u043c\u0432\u043e\u043b\u0430\u043c\u0438 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0430 switch case \u0438 \u0435\u0441\u043b\u0438 \u0435\u0441\u0442\u044c \u0441\u043e\u0432\u043f\u0430\u0434\u0435\u043d\u0438\u0435, \u0442\u043e \u0432\u0440\u0443\u0447\u043d\u0443\u044e \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Console.WriteLine \u0432\u044b\u0432\u043e\u0434\u0438\u043c \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0438\u0437 \u043c\u0430\u0441\u0441\u0438\u0432\u0430 tableEng.<\/p>\n<p>\u0412\u043e\u0442 \u043a\u0430\u043a \u044d\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442\u044c:<\/p>\n<pre><code class=\"cs\">using (StreamReader streamReader = new StreamReader(filePath))             {                 string line;                 while ((line = streamReader.ReadLine()) != null)                 {                     string[] words = line.Split(' ');                     foreach (var word in words)                     {                         Console.Write(word);                         switch (word)                         {                             case \"11\":                                 Console.WriteLine($\"{tableEng[0, 0]}\");                                 break;                             case \"12\":                                 Console.WriteLine($\"{tableEng[0, 1]}\");                                 break;                             case \"13\":                                 Console.WriteLine($\"{tableEng[0, 2]}\");                                 break;                             case \"14\":                                 Console.WriteLine($\"{tableEng[0, 3]}\");                                 break;                             case \"15\":                                 Console.WriteLine($\"{tableEng[0, 4]}\");                                 break;                             case \"21\":                                 Console.WriteLine($\"{tableEng[1, 0]}\");\/\/                                 break;                             case \"22\":                                 Console.WriteLine($\"{tableEng[1, 1]}\");                                 break;                             case \"23\":                                 Console.WriteLine($\"{tableEng[1, 2]}\");                                 break;                             case \"24\":                                 Console.WriteLine($\"{tableEng[1, 3]}\");                                 break;                             case \"25\":                                 Console.WriteLine($\"{tableEng[1, 4]}\");                                 break;                             case \"31\":                                 Console.WriteLine($\"{tableEng[2, 0]}\");                                 break;                             case \"32\":                                 Console.WriteLine($\"{tableEng[2, 1]}\");                                 break;                             case \"33\":                                 Console.WriteLine($\"{tableEng[2, 2]}\");                                 break;                             case \"34\":                                 Console.WriteLine($\"{tableEng[2, 3]}\");                                 break;                             case \"35\":                                 Console.WriteLine($\"{tableEng[2, 4]}\");                                 break;                             case \"41\":                                 Console.WriteLine($\"{tableEng[3, 0]}\");                                 break;                             case \"42\":                                 Console.WriteLine($\"{tableEng[3, 1]}\");                                 break;                             case \"43\":                                 Console.WriteLine($\"{tableEng[3, 2]}\");                                 break;                             case \"44\":                                 Console.WriteLine($\"{tableEng[3, 3]}\");                                 break;                             case \"45\":                                 Console.WriteLine($\"{tableEng[3, 4]}\");                                 break;                             case \"51\":                                 Console.WriteLine($\"{tableEng[4, 0]}\");                                 break;                             case \"52\":                                 Console.WriteLine($\"{tableEng[4, 1]}\");                                 break;                             case \"53\":                                 Console.WriteLine($\"{tableEng[4, 2]}\");                                 break;                             case \"54\":                                 Console.WriteLine($\"{tableEng[4, 3]}\");                                 break;                             case \"55\":                                 Console.WriteLine($\"{tableEng[4, 4]}\");                                 break;                         }                                              }                 }                 Console.ReadLine();             }<\/code><\/pre>\n<p>\u0415\u0441\u043b\u0438 \u043c\u044b \u044d\u0442\u043e \u0434\u0435\u043b\u0430\u043b\u0438 \u0432 \u0434\u0440\u0443\u0433\u043e\u0439 \u0432\u043a\u043b\u0430\u0434\u043a\u0435:<\/p>\n<p>\u0414\u0430\u043b\u0435\u0435 \u0432 Main() \u043c\u044b \u043e\u0431\u044a\u044f\u0432\u043b\u044f\u0435\u043c \u043a\u043b\u0430\u0441\u0441, \u043f\u043e\u0442\u043e\u043c \u043c\u0435\u0442\u043e\u0434 Cube_Polibiai() \u0434\u043b\u044f \u0432\u044b\u0432\u043e\u0434\u0430.<\/p>\n<p>\u0412\u043e\u0442 \u0442\u0430\u043a:<\/p>\n<pre><code class=\"cs\">static void Main(string[] args)         {             Task_1 t = new Task_1();             t.Cube_Polibiai();         }<\/code><\/pre>\n<p>\u0412\u043e\u0442 \u0442\u0430\u043a \u044f \u043f\u0438\u0441\u0430\u043b\u0430 \u044d\u0442\u0443 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 \ud83d\ude42<\/p>\n<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/771530\/\"> https:\/\/habr.com\/ru\/articles\/771530\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u0412 \u0414\u0440\u0435\u0432\u043d\u0435\u0439 \u0413\u0440\u0435\u0446\u0438\u0438 (2 \u0432\u0435\u043a \u0434\u043e \u043d.\u044d.) \u0431\u044b\u043b \u0438\u0437\u0432\u0435\u0441\u0442\u0435\u043d \u0448\u0438\u0444\u0440, \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u043c\u044b\u0439 &#171;\u041a\u0432\u0430\u0434\u0440\u0430\u0442 \u041f\u043e\u043b\u0438\u0431\u0438\u044f&#187;. \u0428\u0438\u0444\u0440\u043e\u0432\u0430\u043b\u044c\u043d\u0430\u044f \u0442\u0430\u0431\u043b\u0438\u0446\u0430 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u043b\u0430 \u0441\u043e\u0431\u043e\u0439 \u043a\u0432\u0430\u0434\u0440\u0430\u0442 \u0441 \u043f\u044f\u0442\u044c\u044e \u0441\u0442\u043e\u043b\u0431\u0446\u0430\u043c\u0438 \u0438 \u043f\u044f\u0442\u044c\u044e \u0441\u0442\u0440\u043e\u043a\u0430\u043c\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0443\u043c\u0435\u0440\u043e\u0432\u0430\u043b\u0438\u0441\u044c \u0446\u0438\u0444\u0440\u0430\u043c\u0438 \u043e\u0442 1 \u0434\u043e 5. \u0412 \u043a\u0430\u0436\u0434\u0443\u044e \u043a\u043b\u0435\u0442\u043a\u0443 \u0442\u0430\u043a\u043e\u0433\u043e \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u0430 \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u043b\u0430\u0441\u044c \u043e\u0434\u043d\u0430 \u0431\u0443\u043a\u0432\u0430. \u0412 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u043a\u0430\u0436\u0434\u043e\u0439 \u0431\u0443\u043a\u0432\u0435 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043e\u0432\u0430\u043b\u0430 \u043f\u0430\u0440\u0430 \u0447\u0438\u0441\u0435\u043b, \u0438 \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0441\u0432\u043e\u0434\u0438\u043b\u043e\u0441\u044c \u043a \u0437\u0430\u043c\u0435\u043d\u0435 \u0431\u0443\u043a\u0432\u044b \u043f\u0430\u0440\u043e\u0439 \u0447\u0438\u0441\u0435\u043b. \u0414\u043b\u044f \u043b\u0430\u0442\u0438\u043d\u0441\u043a\u043e\u0433\u043e \u0430\u043b\u0444\u0430\u0432\u0438\u0442\u0430 &#171;\u041a\u0432\u0430\u0434\u0440\u0430\u0442 \u041f\u043e\u043b\u0438\u0431\u0438\u044f&#187; \u0438\u043c\u0435\u0435\u0442 \u0432\u0438\u0434:<\/p>\n<p>        1      2      3      4       5<\/p>\n<p> 1ABCDE<br \/> 2FGHJ,IK<br \/> 3LMNOP<br \/> 4QRSTU<br \/> 5VWXYZ<\/p>\n<p>\u0418 \u043c\u043d\u0435 \u043d\u0443\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043c\u043e\u0433\u043b\u0430 \u0434\u0435\u043b\u0430\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435:<br \/> \u0430) \u0417\u0430\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u0442\u044c \u0432\u0432\u0435\u0434\u0435\u043d\u043d\u044b\u0439 \u0442\u0435\u043a\u0441\u0442 \u0438\u0437 \u043a\u043e\u043d\u0441\u043e\u043b\u0438 \u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0435\u0433\u043e \u0432 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0439 \u0444\u0430\u0439\u043b;<br \/> \u0431) \u0421\u0447\u0438\u0442\u0430\u0435\u0442 \u0437\u0430\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0442\u0435\u043a\u0441\u0442 \u0438\u0437 \u0444\u0430\u0439\u043b\u0430 \u0438 \u0440\u0430\u0441\u0448\u0438\u0444\u0440\u0443\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0439 \u0442\u0435\u043a\u0441\u0442 \u0432\u044b\u0432\u0435\u0434\u044f \u0435\u0433\u043e \u043d\u0430 \u043a\u043e\u043d\u0441\u043e\u043b\u044c.<\/p>\n<p>\u0412\u043e\u043e\u0431\u0449\u0435 &#171;\u041a\u0432\u0430\u0434\u0440\u0430\u0442 \u041f\u043e\u043b\u0438\u0431\u0438\u044f&#187; \u043c\u043e\u0436\u0435\u0442 \u0438\u043c\u0435\u0442\u044c \u0440\u0430\u0437\u043d\u044b\u0439 \u0432\u0438\u0434, \u043d\u043e \u0441\u0435\u0433\u043e\u0434\u043d\u044f \u043f\u043e\u0433\u043e\u0432\u043e\u0440\u0438\u043c \u043e \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u0441 \u0434\u0430\u043d\u043d\u043e\u0439 \u0440\u0430\u043d\u0435\u0435 \u0442\u0430\u0431\u043b\u0438\u0446\u0435. \u041c\u044b \u0431\u0443\u0434\u0435\u043c \u0434\u0435\u043b\u0430\u0442\u044c \u043d\u0430\u0448\u0443 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 \u0432 Visual Studio 2019, \u043d\u043e \u0434\u043b\u044f \u043a\u0430\u043a\u0438\u0445-\u043d\u0438\u0431\u0443\u0434\u044c 2020 \u0438 \u0442.\u043f. \u0442\u043e\u0436\u0435 \u043f\u043e\u0434\u043e\u0439\u0434\u0435\u0442.<\/p>\n<p>!!!\u0412\u0441\u0435 \u0431\u0443\u043a\u0432\u044b \u0431\u0443\u0434\u0443\u0442 \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c\u0441\u044f \u0438\u0441\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043a\u0430\u043f\u0441\u043b\u043e\u043a\u043e\u043c \u0432 \u044d\u0442\u043e\u0439 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0435, \u0442.\u0435. \u0435\u0441\u043b\u0438 \u0432\u044b \u0437\u0430\u043f\u043e\u043b\u043d\u0438\u0442\u0435 \u043c\u0430\u0441\u0441\u0438\u0432 \u0431\u0443\u043a\u0432\u0430\u043c\u0438 \u0441 \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u043e\u0439 \u0431\u0443\u043a\u0432\u044b, \u0442\u043e \u0431\u0443\u043a\u0432\u044b \u0441 \u043a\u043e\u043d\u0441\u043e\u043b\u0438 \u0431\u0443\u0434\u0443\u0442 \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c\u0441\u044f \u0438\u0441\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0441 \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u043e\u0439 \u0431\u0443\u043a\u0432\u044b!!!<\/p>\n<p>\u0418 \u0442\u0430\u043a, \u043d\u0430\u043c \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u043d\u0443\u0436\u043d\u044b \u0431\u0443\u0434\u0443\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438:<\/p>\n<p><code>System;\/\/\u043e\u0441\u043d\u043e\u0432\u043d\u0430\u044f<br \/>System.Collections.Generic;\/\/\u043e\u0441\u043d\u043e\u0432\u043d\u0430\u044f<br \/>System.Linq;\/\/\u043e\u0441\u043d\u043e\u0432\u043d\u0430\u044f<br \/>System.Text;\/\/\u043e\u0441\u043d\u043e\u0432\u043d\u0430\u044f<br \/>System.Threading.Tasks;\/\/\u043e\u0441\u043d\u043e\u0432\u043d\u0430\u044f<br \/>System.IO;\/\/\u0434\u043b\u044f \u0437\u0430\u043f\u0438\u0441\u0438 \u0438 \u0447\u0442\u0435\u043d\u0438\u044f \u0444\u0430\u0439\u043b\u0430<br \/>System.Threading;\/\/\u043e\u0441\u043d\u043e\u0432\u043d\u0430\u044f<\/code><\/p>\n<p>\u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u043c\u044b \u0432 \u043a\u043b\u0430\u0441\u0441\u0435 \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0434\u0432\u0443\u043c\u0435\u0440\u043d\u044b\u0439 \u043c\u0430\u0441\u0441\u0438\u0432 \u0434\u043b\u044f \u0431\u0443\u043a\u0432 \u0438\u0437 \u0442\u0430\u0431\u043b\u0438\u0446\u044b, \u0441\u0442\u0440\u043e\u0447\u043a\u0443 \u0434\u043b\u044f \u0447\u0442\u0435\u043d\u0438\u044f \u0441\u043b\u043e\u0432 \u0441 \u043a\u043e\u043d\u0441\u043e\u043b\u0438 \u0438 \u0442\u0440\u0438 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435, \u043f\u0435\u0440\u0432\u0430\u044f \u0434\u043b\u044f \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u0433\u043e \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f \u0434\u0432\u0443\u0445 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0445, \u0432\u0442\u043e\u0440\u0430\u044f \u0434\u043b\u044f \u0443\u043a\u0430\u0437\u0430\u043d\u0438\u044f \u043f\u0443\u0442\u0438 \u043a \u043d\u0443\u0436\u043d\u043e\u043c\u0443 \u0444\u0430\u0439\u043b\u0443, \u0430 \u0442\u0440\u0435\u0442\u044c\u044f \u0441\u0430\u043c\u043e \u043d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435 \u0444\u0430\u0439\u043b\u0430 \u0438 \u0435\u0433\u043e \u0444\u043e\u0440\u043c\u0430\u0442. \u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0439 (txt).<\/p>\n<p>\u0412\u043e\u0442 \u043a\u0430\u043a \u044d\u0442\u043e \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442:<\/p>\n<pre><code class=\"cs\">string[,] tableEng = new string[,]         {             { \"A\", \"B\", \"C\", \"D\",\"E\" },             { \"F\", \"G\", \"H\", \"I\", \"K\" },             { \"L\", \"M\", \"N\", \"O\", \"P\" },             { \"Q\", \"R\", \"S\", \"T\", \"U\" },             { \"V\", \"W\", \"X\", \"Y\", \"Z\" },         };         string text;         string filePath;         string path = @\"D:\\\\\u0422\u042b \u0425\u041e\u0427\u0415\u0428\u042c \u0427\u0422\u041e \u041b\u0418 \u0411\u0410\u041e\u0411\u0410\u0411 \u041d\u0410\u0419\u0422\u0418\\\\\";         string file = @\"\\\\\u043f\u0430\u043c\u044f\u0442\u044c.txt\";<\/code><\/pre>\n<p>\u0417\u0430\u0442\u0435\u043c \u0432 \u043a\u043b\u0430\u0441\u0441\u0435 \u043c\u044b \u043e\u0431\u044a\u044f\u0432\u043b\u044f\u0435\u043c \u043f\u0443\u0431\u043b\u0438\u0447\u043d\u044b\u0439 \u043c\u0435\u0442\u043e\u0434, \u0433\u0434\u0435 \u0443\u0436\u0435 \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u0432\u043e\u0439 \u043a\u043e\u0434. \u042f \u0435\u0433\u043e \u043d\u0430\u0437\u0432\u0430\u043b\u0430 \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u043e\u043c \u043f\u043e\u043b\u0438\u0431\u0438\u044f, \u043d\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e \u0430\u043d\u0433\u043b\u0438\u0439\u0441\u043a\u0438\u0439, \u0430 \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043d\u0430\u0437\u0432\u0430\u0442\u044c \u0435\u0433\u043e \u043f\u043e \u0434\u0440\u0443\u0433\u043e\u043c\u0443, \u043d\u043e \u0442\u0430\u043a \u0447\u0442\u043e\u0431\u044b \u043a\u0430\u0436\u0434\u044b\u0439 \u043f\u0440\u0438 \u043e\u0434\u043d\u043e\u043c \u0435\u0433\u043e \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0438 \u0441\u043c\u043e\u0433 \u043f\u043e\u043d\u044f\u0442\u044c \u0437\u0430 \u0447\u0442\u043e \u044d\u0442\u043e\u0442 \u043a\u0443\u0441\u043e\u043a \u043a\u043e\u0434\u0430 \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442.<\/p>\n<p>\u0412\u044b\u0432\u043e\u0434\u0438\u043c \u043d\u0430 \u043a\u043e\u043d\u0441\u043e\u043b\u044c \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044e, \u0430 \u043d\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u0441\u0442\u0440\u043e\u043a\u0435 \u0441\u043e\u0435\u0434\u0438\u043d\u044f\u0435\u043c \u043d\u0443\u0436\u043d\u044b\u0435 \u043d\u0430\u043c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0432 \u043e\u0434\u043d\u0443 \u0434\u043b\u044f \u0443\u043a\u0430\u0437\u0430\u043d\u0438\u044f \u043d\u0443\u0436\u043d\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430.<\/p>\n<p>\u0417\u0430\u0442\u0435\u043c \u043c\u044b \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u0435\u043c \u043d\u0430\u0447\u0430\u043b\u043e \u0437\u0430\u043f\u0438\u0441\u0438 \u0441 \u043a\u043e\u043d\u0441\u043e\u043b\u0438 \u0434\u0430\u043d\u043d\u044b\u0445(\u0431\u0443\u043a\u0432) \u0438 \u0432 \u0442\u0435\u043b\u0435 \u043c\u0435\u0442\u043e\u0434\u0430 \u043c\u044b \u043f\u0438\u0448\u0435\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435:<\/p>\n<p> \u2981\u041e\u0431\u044a\u044f\u0432\u043b\u044f\u0435\u043c \u0446\u0438\u043a\u043b while \u0434\u043b\u044f \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u044f \u0432\u0432\u043e\u0434\u0430 \u043d\u0443\u0436\u043d\u044b\u0445 \u0441\u043b\u043e\u0432, \u0442.\u0435. \u0441\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u043c \u0434\u0430\u043d\u043d\u044b\u0435 \u0441 \u043a\u043e\u043d\u0441\u043e\u043b\u0438 \u0434\u043e \u0442\u0435\u0445 \u043f\u043e\u0440 \u043f\u043e\u043a\u0430 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u043d\u0435 \u0432\u0432\u0435\u0434\u0435\u0442 * \u0438 \u043d\u0435 \u0442\u044b\u043a\u043d\u0435\u0442 \u0435\u043d\u0442\u0435\u0440,<\/p>\n<p> \u2981\u0421\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u043c \u0434\u0430\u043d\u043d\u044b\u0435 \u0441 \u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u044b,<\/p>\n<p> \u2981\u0421 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Split \u0440\u0430\u0437\u0434\u0435\u043b\u044f\u0435\u043c \u0441\u043b\u043e\u0432\u0430 \u043d\u0430 \u0438 \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0435\u0433\u043e \u0432 \u043c\u0430\u0441\u0441\u0438\u0432 m,<\/p>\n<p>C \u043f\u043e\u043c\u043e\u0449\u044c\u044e Split \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0441 \u0441\u0442\u0440\u043e\u043a\u0438 \u0443\u0434\u0430\u043b\u044f\u0442\u044c \u043f\u0440\u043e\u0431\u0435\u043b\u044b, \u0441\u0438\u043c\u0432\u043e\u043b\u044b, \u0437\u043d\u0430\u043a\u0438 \u043f\u0440\u0435\u043f\u0438\u043d\u0430\u043d\u0438\u044f, \u0430 \u0442\u0430\u043a\u0436\u0435 \u043d\u0435 \u043d\u0443\u0436\u043d\u044b\u0435 \u043d\u0430\u043c \u0431\u0443\u043a\u0432\u044b. \u0418 \u044d\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043a\u0430\u043a \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u043e \u043d\u0438\u0436\u0435:<\/p>\n<pre><code class=\"cs\">string[] words = line.Split(' ', ',', '.', '-', '=', '+', '!', '?', '^', '&amp;');<\/code><\/pre>\n<p> \u2981\u0421 \u043f\u043e\u043c\u043e\u0449\u044c\u044e foreach \u043c\u044b \u043f\u0435\u0440\u0435\u0431\u0438\u0440\u0430\u0435\u043c \u0442\u0435\u043a\u0441\u0442 \u0438\u0437 \u043c\u0430\u0441\u0441\u0438\u0432\u0430,<\/p>\n<p> \u2981\u0410 \u0432 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c foreach \u043c\u044b \u043f\u0435\u0440\u0435\u0431\u0438\u0440\u0430\u0435\u043c \u0442\u0435\u043a\u0441\u0442 \u0443\u0436\u0435 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u0434\u043b\u044f \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432, \u044d\u0442\u043e \u043d\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u0434\u043b\u044f \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044f \u0431\u0443\u043a\u0432 \u0441 \u0431\u0443\u043a\u0432\u0430\u043c\u0438 \u0438\u0437 \u043c\u0430\u0441\u0441\u0438\u0432\u0430 tableEng,<\/p>\n<p>\u2981\u0422\u0435\u043f\u0435\u0440\u044c \u043c\u044b \u043f\u0435\u0440\u0435\u0431\u0438\u0440\u0430\u0435\u043c \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0446\u0438\u043a\u043b\u043e\u0432 for \u043c\u0430\u0441\u0441\u0438\u0432 tableEng, \u0434\u0435\u043b\u0430\u0435\u043c \u0446\u0438\u043a\u043b \u0432 \u0446\u0438\u043a\u043b\u0435. \u0422.\u043a. \u0443 \u043d\u0430\u0441 \u043c\u0430\u0441\u0441\u0438\u0432 \u0434\u0432\u0443\u043c\u0435\u0440\u043d\u044b\u0439, \u0442\u043e \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0438\u043c\u0435\u043d\u043d\u043e \u0434\u0432\u0430 \u0446\u0438\u043a\u043b\u0430 \u0434\u043b\u044f \u043f\u0435\u0440\u0435\u0431\u043e\u0440\u0430 \u0434\u0432\u0443\u0445 \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u0439 \u0432 \u043d\u0435\u043c. \u0410 \u0432 \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0438, \u0432 \u0446\u0438\u043a\u043b\u0430\u0445, \u0433\u0434\u0435 \u043c\u044b \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e i \u0441\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u0435\u043c \u0441 \u043c\u0430\u0441\u0441\u0438\u0432\u043e\u043c, \u0432\u043c\u0435\u0441\u0442\u043e Length \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c GetLength(), \u0442.\u043a. Length \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u043e\u0434\u043d\u043e\u043c\u0435\u0440\u043d\u044b\u0445 \u043c\u0430\u0441\u0441\u0438\u0432\u043e\u0432, \u0430 GetLength() \u0434\u043b\u044f \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u0439 \u043c\u043d\u043e\u0433\u043e\u043c\u0435\u0440\u043d\u044b\u0445 \u043c\u0430\u0441\u0441\u0438\u0432\u043e\u0432,<\/p>\n<p>Length &#8212; \u0434\u043b\u044f \u0434\u043b\u0438\u043d\u044b \u043e\u0434\u043d\u043e\u043c\u0435\u0440\u043d\u044b\u0445 \u043c\u0430\u0441\u0441\u0438\u0432\u043e\u0432<\/p>\n<p>GetLength() &#8212; \u0434\u043b\u044f \u0434\u043b\u0438\u043d\u044b \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u043d\u0438\u0439 \u043c\u043d\u043e\u0433\u043e\u043c\u0435\u0440\u043d\u044b\u0439 \u043c\u0430\u0441\u0441\u0438\u0432\u043e\u0432, \u0432 \u043d\u0430\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0434\u0432\u0443\u043c\u0435\u0440\u043d\u044b\u043c. \u0415\u0441\u043b\u0438 \u0432 \u0441\u043a\u043e\u0431\u043e\u0447\u043a\u0430\u0445 \u043d\u0430\u043f\u0438\u0448\u0435\u043c 0, \u0442\u043e \u044d\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u0434\u043b\u0438\u043d\u0430 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u044f, \u0435\u0441\u043b\u0438 1, \u0442\u043e \u0432\u0442\u043e\u0440\u043e\u0433\u043e \u0438 \u0442.\u0434.<\/p>\n<p> \u2981\u0418 \u043f\u0438\u0448\u0435\u043c \u043f\u0435\u0440\u0432\u043e\u0435 \u0443\u0441\u043b\u043e\u0432\u0438\u0435 \u0432 if. \u0415\u0441\u043b\u0438 \u0432 \u043c\u0430\u0441\u0441\u0438\u0432\u0435 \u043a\u0430\u043a\u043e\u0439-\u0442\u043e \u0438\u0437 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u043c\u0430\u0441\u0441\u0438\u0432\u0430 tableEng \u0440\u0430\u0432\u0435\u043d \u0441\u0438\u043c\u0432\u043e\u043b\u0443 \u0438\u0437 \u0441\u0442\u0440\u043e\u043a\u0438, \u0442\u043e \u043f\u0440\u0438\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043a i + 1 \u0438 \u0442\u043e\u0436\u0435 \u0441\u0430\u043c\u043e\u0435 \u043a j + 1. \u0414\u0430\u043b\u0435\u0435 \u0432\u044b\u0432\u043e\u0434\u0438\u043c \u0432\u0441\u0435 \u043d\u0430 \u043a\u043e\u043d\u0441\u043e\u043b\u044c,<\/p>\n<p> \u2981\u0410 \u0432\u043d\u0443\u0442\u0440\u0438 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0443\u0441\u043b\u043e\u0432\u0438\u044f \u043f\u0438\u0448\u0435\u043c \u0432\u0442\u043e\u0440\u043e\u0435 \u0434\u043b\u044f \u0441\u0430\u043c\u043e\u0433\u043e \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0446\u0438\u043a\u043b\u0430 while. \u0415\u0441\u043b\u0438 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f text \u0440\u0430\u0432\u043d\u0430 *, \u0442\u043e \u0446\u0438\u043a\u043b \u043f\u0440\u0435\u043a\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f, \u0430 \u0434\u0430\u043d\u043d\u044b\u0435 \u0441 \u043a\u043e\u043d\u0441\u043e\u043b\u0438 \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u0432 \u0444\u0430\u0439\u043b.<\/p>\n<p>\u0412\u043e\u0442 \u043a\u0430\u043a \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043a\u043e\u0434:<\/p>\n<pre><code class=\"cs\">Console.WriteLine(\"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0442\u0435\u043a\u0441\u0442(\u0442\u043e\u043b\u044c\u043a\u043e \u043a\u0430\u043f\u0441\u043b\u043e\u043a\u043e\u043c!!!!), \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0445\u043e\u0442\u0438\u0442\u0435 \u0437\u0430\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u0442\u044c(\u0434\u043b\u044f \u0432\u044b\u0445\u043e\u0434\u0430 * \u0438 \u0435\u043d\u0442\u0435\u0440): \");             filePath = Path.Combine(\"D:\\\\\", path + file);             \/\/\u0437\u0434\u0435\u0441\u044c \u0437\u0430\u0448\u0438\u0444\u0440\u043e\u0432\u044b\u0432\u0430\u044e \u0442\u0435\u043a\u0441\u0442 \u043f\u043e \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u0443 \u043f\u043e\u043b\u0438\u0431\u0438\u044f \u0438 \u0448\u0438\u0444\u0440\u043e\u0432\u043a\u0443 \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u044e \u0432 \u0444\u0430\u0439\u043b            using (StreamWriter streamWriter = new StreamWriter(filePath, true, Encoding.UTF8)) \/\/\u044d\u0442\u043e \u0441\u0442\u0440\u0430\u043a\u0430 \u0434\u043b\u044f \u0437\u0430\u043f\u0438\u0441\u0438 \u0434\u0430\u043d\u043d\u044b\u0445 \u0441 \u043a\u043e\u043d\u0441\u043e\u043b\u0438 \u0432 \u0444\u0430\u0439\u043b            {                  while (text != \"*\")                  {                      text = Console.ReadLine();                      string[] m = text.Split(' ');                      foreach (string letter in m)                      {                          foreach (char c in letter)                          {                              for (int i = 0; i &lt; tableEng.GetLength(0); i++)                              {                                  for (int j = 0; j &lt; tableEng.GetLength(1); j++)                                  {                                      if (tableEng[i, j] == c.ToString())                                      {                                          int result = i + 1;                                          int resu = j + 1;                                          Console.WriteLine($\"{i + 1}{j + 1} \");                                          if (text == \"*\") break;                                          streamWriter.Write($\" {result}{resu} \");                                      }                                   }                              }                          }                      }                  }            }<\/code><\/pre>\n<p>\u0414\u0430\u043b\u0435\u0435 \u043c\u044b \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u0435\u043c \u043d\u0430\u0447\u0430\u043b\u043e \u0447\u0442\u0435\u043d\u0438\u044f \u0441 \u0444\u0430\u0439\u043b\u0430 \u0434\u0430\u043d\u043d\u044b\u0445(\u0431\u0443\u043a\u0432) \u0438 \u0432 \u0442\u0435\u043b\u0435 \u043c\u044b \u043f\u0438\u0448\u0435\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435:<\/p>\n<p> \u2981\u041e\u0431\u044a\u044f\u0432\u043b\u044f\u0435\u043c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e \u0434\u043b\u044f \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u0433\u043e \u0447\u0442\u0435\u043d\u0438\u044f \u0441\u0442\u0440\u043e\u043a \u0438\u0437 \u0444\u0430\u0439\u043b\u0430,<\/p>\n<p> \u2981\u041e\u0431\u044a\u044f\u0432\u043b\u044f\u0435\u043c \u0446\u0438\u043a\u043b while, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u043c\u044b \u0441\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u043c \u0441\u0442\u0440\u043e\u043a\u0438 \u0441 \u0444\u0430\u0439\u043b\u0430 \u0434\u043e \u0442\u0435\u0445 \u043f\u043e\u0440, \u043f\u043e\u043a\u0430 \u043e\u043d\u0438 \u043d\u0435 \u0431\u0443\u0434\u0443\u0442 \u0440\u0430\u0432\u043d\u044b \u043d\u0443\u043b\u044e, \u0442.\u0435. \u043f\u043e\u043a\u0430 \u043d\u0435 \u0437\u0430\u043a\u043e\u043d\u0447\u0430\u0442\u0441\u044f,<\/p>\n<p> \u2981\u0414\u0430\u043b\u0435\u0435 \u043c\u044b \u043e\u0431\u044a\u044f\u0432\u043b\u044f\u0435\u043c \u043c\u0430\u0441\u0441\u0438\u0432 words \u0438 \u0432 \u043d\u0435\u043c \u0440\u0430\u0437\u0434\u0435\u043b\u044f\u0435\u043c \u0441\u0442\u0440\u043e\u043a\u0438 \u043d\u0430 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0435 \u0441\u043b\u043e\u0432\u0430 \u0438 \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0432 \u043d\u0435\u0433\u043e,<\/p>\n<p> \u2981\u0412 \u0446\u0438\u043a\u043b\u0435 foreach \u043c\u044b \u043f\u0435\u0440\u0435\u0431\u0438\u0440\u0430\u0435\u043c \u0441\u0438\u043c\u0432\u043e\u043b\u044b \u0438\u0437 \u043c\u0430\u0441\u0441\u0438\u0432\u0430 words. \u0418 \u0432 \u044d\u0442\u043e\u043c \u0446\u0438\u043a\u043b\u0435 \u043c\u044b \u0432\u044b\u0432\u043e\u0434\u0438\u043c \u0434\u0430\u043d\u043d\u044b\u0435 \u0438\u0437 \u0444\u0430\u0439\u043b\u0430. \u0410 \u0442\u0430\u043a\u0436\u0435 \u043c\u044b \u0441\u0438\u043c\u0432\u043e\u043b\u044b \u0438\u0437 \u0444\u0430\u0439\u043b\u0430 \u0441\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u0435\u043c \u0441 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u043c\u0438 \u0441\u0438\u043c\u0432\u043e\u043b\u0430\u043c\u0438 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0430 switch case \u0438 \u0435\u0441\u043b\u0438 \u0435\u0441\u0442\u044c \u0441\u043e\u0432\u043f\u0430\u0434\u0435\u043d\u0438\u0435, \u0442\u043e \u0432\u0440\u0443\u0447\u043d\u0443\u044e \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Console.WriteLine \u0432\u044b\u0432\u043e\u0434\u0438\u043c \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0438\u0437 \u043c\u0430\u0441\u0441\u0438\u0432\u0430 tableEng.<\/p>\n<p>\u0412\u043e\u0442 \u043a\u0430\u043a \u044d\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442\u044c:<\/p>\n<pre><code class=\"cs\">using (StreamReader streamReader = new StreamReader(filePath))             {                 string line;                 while ((line = streamReader.ReadLine()) != null)                 {                     string[] words = line.Split(' ');                     foreach (var word in words)                     {                         Console.Write(word);                         switch (word)                         {                             case \"11\":                                 Console.WriteLine($\"{tableEng[0, 0]}\");                                 break;                             case \"12\":                                 Console.WriteLine($\"{tableEng[0, 1]}\");                                 break;                             case \"13\":                                 Console.WriteLine($\"{tableEng[0, 2]}\");                                 break;                             case \"14\":                                 Console.WriteLine($\"{tableEng[0, 3]}\");                                 break;                             case \"15\":                                 Console.WriteLine($\"{tableEng[0, 4]}\");                                 break;                             case \"21\":                                 Console.WriteLine($\"{tableEng[1, 0]}\");\/\/                                 break;                             case \"22\":                                 Console.WriteLine($\"{tableEng[1, 1]}\");                                 break;                             case \"23\":                                 Console.WriteLine($\"{tableEng[1, 2]}\");                                 break;                             case \"24\":                                 Console.WriteLine($\"{tableEng[1, 3]}\");                                 break;                             case \"25\":                                 Console.WriteLine($\"{tableEng[1, 4]}\");                                 break;                             case \"31\":                                 Console.WriteLine($\"{tableEng[2, 0]}\");                                 break;                             case \"32\":                                 Console.WriteLine($\"{tableEng[2, 1]}\");                                 break;                             case \"33\":                                 Console.WriteLine($\"{tableEng[2, 2]}\");                                 break;                             case \"34\":                                 Console.WriteLine($\"{tableEng[2, 3]}\");                                 break;                             case \"35\":                                 Console.WriteLine($\"{tableEng[2, 4]}\");                                 break;                             case \"41\":                                 Console.WriteLine($\"{tableEng[3, 0]}\");                                 break;                             case \"42\":                                 Console.WriteLine($\"{tableEng[3, 1]}\");                                 break;                             case \"43\":                                 Console.WriteLine($\"{tableEng[3, 2]}\");                                 break;                             case \"44\":                                 Console.WriteLine($\"{tableEng[3, 3]}\");                                 break;                             case \"45\":                                 Console.WriteLine($\"{tableEng[3, 4]}\");                                 break;<\/code><\/pre>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-359164","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/359164","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=359164"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/359164\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=359164"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=359164"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=359164"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}