+ 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 😂

13th Aug 2017, 7:09 AM
RKJ đŸŒč
RKJ đŸŒč - avatar
2 Answers
+ 3
Just cast the string to upper case or lower case. Change your if to: if(tolower(p[i])==tolower(p[k]))
13th Aug 2017, 7:19 AM
Dennis
Dennis - avatar
+ 6
Hey it worked! thank you so much @Dennis 😁
13th Aug 2017, 7:25 AM
RKJ đŸŒč
RKJ đŸŒč - avatar