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

VulpesPosted Oct 17, 2013, 3:52 AM
Jaganathan BantheswaranPosted Oct 17, 2013, 3:42 AM
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)