Wednesday, 5 June 2019

C# - Check if string is palindrome - if it reads the same backward as forward


watch this example on YouTube


string Test = "ANNA";
bool res = Test.SequenceEqual(Test.Reverse());

No comments:

Post a Comment