using System; using System.Collections.Generic; using System.Text; namespace RevString { class Program { static void Main(string[] args) { //string RevStr; Console.Write("Please Enter your string:"); string RevStr = Console.ReadLine(); char[] str = RevStr.ToCharArray(); int len=str.Length; Console.WriteLine(len); char[] strv = new char[len]; if (len == 0) { Console.WriteLine("Your enter a string without any character, Please enter it again."); }else { Console.Write("Your Reverse String IS:"); for (int i = len - 1; i >= 0; i--) { Console.Write(str[i]); } Console.ReadLine(); } } } }