A palindrome is a word or a phrase that is the same when read both forward and backward Examples are "obsees or never od
Posted: Mon May 02, 2022 12:19 pm
A palindrome is a word or a phrase that is the same when read both forward and backward Examples are "obsees or never odd or evert (ignoring spaces). Write a program whose input is a word or phrase, and that outputs whether the input is a palindrome Exif the input is bob the output is bob 1o palindrome Exif the input is bobby the output is bobby is not a palindrome Hint Start by removing soaces. Then check it a string is equivalent to it's reverse