Problem #3

Code Wars II
Danger Level: Green




}Palindrome~

Point Value: 2
 

Problem Statement

Determine if an input line is a palindrome.  A palindrome is a word, verse, sentence, or number that reads the same backward or forward.
 

Program Input

A series of input lines from the file PROB03.IN:

1881
Madam, I'm Adam.
Lisa Bonet ate no basil.
Taste penne pasta.
 

Program Output

Echo the input line to the output file PROB03.OUT, then indicate whether it was a palindrome.

1881
   is a palindrome.
Madam, I'm Adam.
   is a palindrome.
Lisa Bonet ate no basil.
   is a palindrome.
Taste penne pasta.
   is *not* a palindrome.