Advertisement
RedFlys

Coding to Text

Mar 31st, 2022
1,392
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 3.25 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 ООП
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             byte[] message1 = { 208, 151, 208, 180, 208, 181, 209, 129, 209, 140,
  14.                                 32, 208, 186, 208, 190, 209, 129, 208, 176, 209,
  15.                                128, 209, 143, 32, 208, 189, 208, 181, 209, 130, 46 };
  16.  
  17.             byte[] message2 = { 208, 151, 208, 180, 208, 181, 209, 129, 209, 140,
  18.                                 32, 209, 130, 208, 190, 208, 182, 208, 181, 32,
  19.                                 208, 189, 208, 181, 209, 130, 46 };
  20.  
  21.             byte[] message3 = { 208, 152, 32, 208, 183, 208, 180, 208, 181, 209,
  22.                                 129, 209, 140, 32, 208, 189, 208, 181, 209, 130, 46 };
  23.  
  24.             byte[] message4 = { 208, 157, 208, 176, 32, 208, 191, 208, 181, 208,
  25.                                 189, 209, 145, 208, 186, 32, 209, 129, 208, 181,
  26.                                 208, 187, 32, 45, 32, 208, 180, 208, 190, 208,
  27.                                 187, 208, 182, 208, 181, 32, 208, 177, 209, 139,
  28.                                 208, 187, 32, 208, 186, 208, 190, 209, 129, 208,
  29.                                 176, 209, 128, 209, 140, 32, 208, 190, 209, 130,
  30.                                 208, 180, 208, 176, 209, 130, 209, 140, 46 };
  31.  
  32.             byte[] message5 = { 208, 168, 209, 131, 209, 135, 209, 131, 33, 32,
  33.                                 208, 161, 32, 208, 191, 208, 181, 209, 128, 208,
  34.                                 178, 209, 139, 208, 188, 32, 208, 176, 208, 191,
  35.                                 209, 128, 208, 181, 208, 187, 209, 143, 46 };
  36.  
  37.             ShowCodedMessage(message1);
  38.             ShowCodedMessage(message2);
  39.             ShowCodedMessage(message3);
  40.             ShowCodedMessage(message4);
  41.             ShowCodedMessage(message5);
  42.         }
  43.  
  44.         static void ShowCodedMessage(byte[] bytes)
  45.         {
  46.             string message = Encoding.UTF8.GetString(bytes);
  47.  
  48.             Console.WriteLine(message);
  49.         }
  50.     }
  51. }
  52.  
  53.  
  54. //208, 151, 208, 180, 208, 181, 209, 129, 209, 140, 32, 208, 186, 208, 190, 209, 129, 208, 176, 209, 128, 209, 143, 32, 208, 189, 208, 181, 209, 130, 46,  Здесь косаря нет.
  55. //208, 151, 208, 180, 208, 181, 209, 129, 209, 140, 32, 209, 130, 208, 190, 208, 182, 208, 181, 32, 208, 189, 208, 181, 209, 130, 46, Здесь тоже нет.
  56. //208, 152, 32, 208, 183, 208, 180, 208, 181, 209, 129, 209, 140, 32, 208, 189, 208, 181, 209, 130, 46, И здесь нет.
  57. //208, 157, 208, 176, 32, 208, 191, 208, 181, 208, 189, 209, 145, 208, 186, 32, 209, 129, 208, 181, 208, 187, 32, 45, 32, 208, 180, 208, 190, 208, 187, 208, 182, 208, 181, 32,
  58. //208, 177, 209, 139, 208, 187, 32, 208, 186, 208, 190, 209, 129, 208, 176, 209, 128, 209, 140, 32, 208, 190, 209, 130, 208, 180, 208, 176, 209, 130, 209, 140, 46,  На пенёк сел - долже был косарь отдать.
  59. //208, 168, 209, 131, 209, 135, 209, 131, 33, 32, 208, 161, 32, 208, 191, 208, 181, 209, 128, 208, 178, 209, 139, 208, 188, 32, 208, 176, 208, 191, 209, 128, 208, 181, 208, 187, 209, 143, 46, Шучу! С первым апреля.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement