This tutorial will show how find if a word or string is a palindrome. A palindrome is a word or string that is the same printed forwards and backward.
Examples of a Palindrome
bob
noon
1991
redder
Note
The Oxford English Dictionary states that the longest palindromic word is tattarrattat.
The Guinness Book of Records states that detartrated is the longest word and a soap dish vender saippuakuppinippukauppias is a long palindrome name. (Don’t ask me how to pronounce that name).
Note
The program uses LCASE$ instead of UCASE$. LCASE$ converts strings to lowercase.
Code Download
QBT23.BAS
QB64 is a free download at www.qb64.com
QB64 Wiki & Manual is found at qb64.com/wiki.html
QBasic 1.1 comes with OldDOS. A zip file of OldDOS can be found at www.pcxt-micro.com/download.html
QBasic 1.1 needs DOSBox to run on Windows Vista and greater, Mac, and Linux.
DosBox is a free download at www.dosbox.com
Free QB64/QBasic Code
QBasic.Net - www.qbasic.net
Pete's QBasic Site - www.petesqbsite.com/index.php
QB45 - qb45.org
Phatcode - games.phatcode.net