Microsoft Small Basic

Program Listing: WRB539
TextWindow.WriteLine("Please enter your name or a word:")
input = TextWindow.Read() 'Get input (person's name)
For i = 1 To Text.GetLength(input)
character[i]=Text.GetSubText(input,i,1) 'Get each character of the name or word, and store them in an array
EndFor
For i = 0 To Array.GetItemCount(character)
newval = Text.Append(newval, character[Text.GetLength(input)-i]) 'Create a new variable, with the value of your name or word reversed
EndFor
TextWindow.WriteLine("Your name/word in reverse is: " + newval) 'Show output