Hi
I'm pretty new to programming and I'm having a hard time with this assingment. The details are,
Read in each line and determine if it is a palindrome(same word if reversed ie "dad".
The file contains
5 level 5 -"a palindrome"
Madam - "a palindrome"
a&%_$#()V$)(*_A -"a palindrome"
palindrome - "not a palindrome"
The lines are read in regardless of white space, capitalization, or punctuation marks.
The code so far reads in the first line makes all the letters lower case and the takes out all of the punctuation ( I'm only using a&%_$#()V$)(*_A as input at the moment .the output should be ava but i get avavava and I can't figure out why
Any help will be greatly appreciated



LinkBack URL
About LinkBacks


