Reverse a string using FOR loop in C#

Using for loop we can reverse a string with char array reversing.

using System;
namespace forgetCode
{
    class Program
    {
        public static void Main(string[] args)
        {
            Console.WriteLine("Enter the string to reverse :");
            string name = Console.ReadLine();

            char[] cArray = name.ToCharArray();
            string nameReverse = String.Empty;
            for (int i = cArray.Length - 1; i > -1; i--)
            {
                nameReverse += cArray[i];
            }
            Console.WriteLine(nameReverse);
            
        }
    }
}


Output:

Enter the string to reverse :
forget code

edoc tegrof