David has written a subprogram that processes text strings.
function manipulateString(phrase, firstIndex, secondIndex)
result = ""
for index = firstIndex to secondIndex
result = result + phrase[index]
next index
return result
endfunction
Note: String indexing starts at 0.
State the value returned by the subprogram manipulateString when it is called with the following parameters:
manipulateString("cryptography", 2, 7)