i am trying to create a program that allows me to see if a sentence is a palindrome. this is what i have but something is wrong.
CLS
DIM a$(1 TO 5)
FOR i = 1 TO 5
INPUT "give me word"; word$
NEXT i
LET differflag = 0
FOR i = 1 TO 5
IF a$(i) <> a$(5 - i) THEN
LET differflag = 1
END IF
NEXT i
IF differflag = 1 THEN
PRINT " not a palindrome"
ELSE PRINT "palindrome"
END IF