I am trying to find if string s1 is palindrome , reverse the string and save it in s2, now s1==s2 , here I am never getting true

后端 未结 0 972
离开以前
离开以前 2021-01-18 18:08

See my code below:

        string s1 = "madam";
        string s2 = string.Empty;

        int length = s1.Length-1;
        for (int i = length; i          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题