+ 7
Need suggestions with a code I made using c++
In my code #4 Palindrome, it works but it is case-sensitive. Is there a way I can fix this with just a few lines? i have no idea at the moment what to do pls send help 😂
2 Réponses
+ 3
Just cast the string to upper case or lower case.
Change your if to:
if(tolower(p[i])==tolower(p[k]))
+ 6
Hey it worked! thank you so much @Dennis 😁