RosettaCodeData/Task/Reverse-words-in-a-string/EasyLang/reverse-words-in-a-string.easy
2024-03-06 22:25:12 -08:00

20 lines
375 B
Text

repeat
s$ = input
until error = 1
s$[] = strsplit s$ " "
for i = len s$[] downto 1
write s$[i] & " "
.
print ""
.
input_data
--------- Ice and Fire ------------
fire, in end will world the say Some
ice. in say Some
desire of tasted I've what From
fire. favor who those with hold I
... elided paragraph last ...
Frost Robert -----------------------