About Don Schullian Expertise I`ve worked in BASIC since the Commodore days and maintain a web site part of which is devoted to helping others with thier problems. I`m proficient in all versions of PowerBASIC but cross over to QuickBASIC and Qbasic frequently.
Question sir i live in india im in class vii i need u to answer this
question by to-morrow.The question is-write a program to
find whether an input string is a palindrome or not.(a
palindrome is a word that spells the same backwards as it
does forwards.example madam
Answer Hi Ankit,
This isn't as difficult as you may think. As we don't do homework here the best I can do for you is provide you with the clues and tools you'll need to accomplish your task.
You'll need LEN to find the length for the loop to copy each letter in the word. You'll want to work backwards to create a mirror image of the test word. Then compare the original word and the word you've created in your loop using MID$ to see if they are the same. If they are, you have a palindrome.
I'll be here for, maybe, another hour. If you send me some code maybe I can help you further.