vasanthanc
New User
Joined: 01 Apr 2005 Posts: 58
|
|
|
|
You can use the REVERSE key word to reverse characters in a word. To reverse the whole sentence also you can use the same. But if you want to keep the words as whole, then you can use the following code
for i = 1 to no-of-words
move old-sentance(n - i + 1) to new-sentance(i)
end-for
where as old-sentance and new-sentance are arrays, in which each array elament have single word and no-of-words have the total no of words in the sentance
Hope this will help you |
|