The loop reads the word, one letter at a time, until it reaches the end of the word.