I am working on different things .. here comes i want to print the string reversed output and parallel y check weather it is palindrome or not . .
Note : i enter the string dynamically i.e in console window ..
Help it :)
I can code this scenario in c# at ease but interestingly i an finding too many errors while doing the same . so help it guys
In console window i enter the string like this ::: --> A man a plan , a canal - panama
In console window i enter the string like this ::: --> A man a plan , a canal - panama
Ty guys


VulpesRank #55 · 29.2K reputationPosted Oct 16, 2013, 11:52 PM EDT
Jaganathan BantheswaranRank #170 · 14.1K reputationPosted Oct 16, 2013, 11:42 PM EDT
string input = "hello world";
string output = new string(input.ToCharArray().Reverse().ToArray());
Console.write("Is " + input + " palindrome? => " + String.Compare(input.Trim(), output.Trim(), true) == 0)