Link Search Menu Expand Document

Palindrome

Print true if the given string is a palindrome (i.e. if it reads the same both left-to-right and right-to-left), false otherwise.

E.g. for car the program should print false, whereas for racecar it should print true.