bacco

Reversed chars

May 22nd, 2018
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.40 KB | None | 0 0
  1. using System;
  2.  
  3. namespace ReverseCharacters
  4. {
  5.     class MainClass
  6.     {
  7.         public static void Main(string[] args)
  8.         {
  9.             char[] array = new char[3];
  10.  
  11.             for (int i = 0; i < 3; i++)
  12.             {
  13.                 array[i] = char.Parse(Console.ReadLine());
  14.             }
  15.             Array.Reverse(array);
  16.             Console.WriteLine(array);
  17.         }
  18.     }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment