The subroutine SUBSTRING extracts characters from a given string.
For example, SUBSTRING(2, 5, 'Algorithm') would return gori.
Figure 1 shows values assigned to four variables:
country ← 'United Kingdom'
capital ← 'London'
landmark ← 'Stonehenge'
river ← 'River Thames'
The variable z z\,z is assigned a value using the statement:
z←SUBSTRING(5,8,landmark) z \leftarrow \text{SUBSTRING}(5, 8, \text{landmark}) z←SUBSTRING(5,8,landmark)Using Figure 1, what is the value of zzz?
stone
heng
henge
ehen