I am finding it hard to find what this pseudocode outputs. Does it mean for example if you entered the name Peter
. Would the output be pet
? Or the letter t
?
Display enter a name
Get name
Length = length of name
Index = length -1
While index >= 0 Do
DISPLAY name(index)
Index = index -2
ENDWHILE