using System;

class Reverse
{
 static void Main()
 {
  Console.WriteLine("원하는 숫자나 문자를 입력해주세요!");
  String strLine = Console.ReadLine();
  Char[] ch = strLine.ToCharArray(); //String 변수는 char[] 배열로 만듬;

  for (int index = ch.Length - 1; index >= 0; index--) //
  {
   Console.Write(ch[index]);
  }

  Console.ReadLine();
 }
}

+ Recent posts