using System;
class Program
{
static void Main()
{
string str = "Hello World";
char[] charArray = str.ToCharArray();
Array.Reverse(charArray);
string reversedStr = new string(charArray);
Console.WriteLine("Reversed String: " + reversedStr);
}
}
To embed this program on your website, copy the following code and paste it into your website's HTML: