RosettaCodeData/Task/Reverse-a-string/HicEst/reverse-a-string.hicest

11 lines
177 B
Text
Raw Permalink Normal View History

2013-04-10 23:57:08 -07:00
CHARACTER string = "Hello World", tmp
L = LEN( string )
DO i = 1, L/2
tmp = string(i)
string(i) = string(L-i+1)
string(L-i+1) = tmp
ENDDO
WRITE(Messagebox, Name) string