C++ program to check whether a given string is a palindrome
kw.cpp
Output
kodingwindow@kw:~$ g++ kw.cpp
kodingwindow@kw:~$ ./a.out ——————————————————————————————————————————— Program to check string is palindrome | not ——————————————————————————————————————————— Enter the string WAR WAR is not a palindrome ——————————————————————————————————————————— kodingwindow@kw:~$ ./a.out ——————————————————————————————————————————— Program to check string is palindrome | not ——————————————————————————————————————————— Enter the string RAR RAR is a palindrome ——————————————————————————————————————————— kodingwindow@kw:~$
Advertisement