Given a string write a program to reverse it.
Anoniem
namespace ReserveString { class Program { static void Main(string[] args) { Console.WriteLine(Reserve("ABCDEFGHIGKLMNOPQRST")); Console.ReadLine(); } public static string Reserve(string str) { if (str == null || str.Length <= 0) { return ""; } return str[str.Length - 1] + Reserve(str.Substring(0, str.Length - 1)); } } }