Hi Madhu,
Nice Try...
Change the loop variable 'i' because in our website 'i' is consider as italic format.So change
for (int i = inputValue.Length-1; i >= 0; i--) to
for (int x = inputValue.Length-1; x >= 0; x--)
Try this way to reverse a string...
string s = "ABCDEF";
StringBuilder sb = new StringBuilder();
foreach(char c in s)
{
sb.Insert(0,c);
}
Console.WriteLine(sb);
Cheers :)