static void Main(string[] args) { string _Inputstr = string.Empty, _Reversestr = string.Empty; Console.Write("Enter the string : "); _Inputstr = Console.ReadLine(); for (inti = _Inputstr.Length - 1; i >= 0; i--) { _Reversestr += _Inputstr[i]; } Console.WriteLine("The reverse string is {0}", _Reversestr); Console.ReadLine(); }