RosettaCodeData/Task/Palindrome-detection/Ring/palindrome-detection.ring
2016-12-05 23:44:36 +01: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