Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- namespace ConsoleApp10
- {
- class Program
- {
- static void Main(string[] args)
- {
- // Ученики шифруют свои послания, записывая их наоборот.
- // Создать прогу для зашифровки и расшифровки таких посланий.
- string str = "Мне кажется, что нам тут не рады.";
- string str2 = null;
- for (int i = str.Length - 1; i > -1; i--)
- str2 += str[i];
- Console.WriteLine(str);
- Console.ForegroundColor = ConsoleColor.Green;
- Console.WriteLine(str2);
- Console.ResetColor();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement