Test Reverse

CSharp · Console

/Program.cs

using System;
					
public class Program
{
	public static void Main()
	{
		
    string x = "your string";		
    string x1 = "";
    for(int i = x.Length-1 ; i >= 0; i--)
        x1 += x[i];
		Console.WriteLine("The reverse of the string is:\n{0}", x1);
	}
}
;