Write a program that reads a string and checks whether it is a palindrome, i.e. it reads the same both left-to-right and right-to-left.
The program must output “yes” if the string is a palindrome and “no” otherwise.
Write a program that reads a string and checks whether it is a palindrome, i.e. it reads the same both left-to-right and right-to-left.
The program must output “yes” if the string is a palindrome and “no” otherwise.
Sample Input 1:
kayakSample Output 1:
yesCreate a free account to access the full topic