To code a program to check whether it is a palindrome or not
Posted on 2000-04-17
I want to desgin a program is to input several strings, one per input line, and determine whether each is a palindrome.
The first input item, an integer number, tells how many strings the program must analyse.
After this input value, each string is entered on a separate input line followed by program's analysis of the string.A palindrome is a string that reads the same forwards and backwards, disregarding punctuation and the distinction between uppercase and lowercase letters. Examples are:
· the name: Bob
· the word: noon
· the word: RADAR
· the name: Hannah
· the sentence: Madam, I'm Adam
· the sentence attributed to Napolean when exiled to Elba:
Able was I, ere I saw Elba
its a very good concept to learn, i just want to know how to code so I can prepare to more hardcore stuff like this.