AllExperts > Qbasic, Quickbasic 
Search      
Qbasic, Quickbasic
Volunteer
Answers to thousands of questions
 Home · More Qbasic, Quickbasic Questions · Answer Library  · Encyclopedia ·
More Qbasic, Quickbasic Answers
Question Library

Ask a question about Qbasic, Quickbasic
Volunteer
Experts of the Month
Expert Login

Awards

About Us
Tell friends
Link to Us
Disclaimer

 
 
 
 
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.

 
   

You are here:  Experts > Computing/Technology > Basic > Qbasic, Quickbasic > help!!!!

Qbasic, Quickbasic - help!!!!


Expert: Don Schullian - 2/14/2009

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.  

Add to this Answer   Ask a Question


 
User Agreement | Privacy Policy | Kids' Privacy Policy | Help
Copyright  © 2008 About, Inc. AllExperts, AllExperts.com, and About.com are registered trademarks of About, Inc. All rights reserved.