RosettaCodeData/Task/Palindrome-detection/Ring/palindrome-detection.ring
2023-07-01 13:44:08 -04:00

8 lines
205 B
Text

aString = "radar"
bString = ""
for i=len(aString) to 1 step -1
bString = bString + aString[i]
next
see aString
if aString = bString see " is a palindrome." + nl
else see " is not a palindrome" + nl ok