Site Loader
Auckland, New Zealand
Here is the very simple algorithm Here is the code snippet
        public static void strReverse(string value)
        {
            int strLength = value.Length - 1;
            string reverse = null;
            while (strLength >= 0)
            {
                reverse = reverse + value[strLength];
                strLength--;
            }
            Console.WriteLine(reverse);
        }
Thanks, Karthik KK

Post Author: Karthik kk

Leave a Reply

Your email address will not be published. Required fields are marked *