Three words are stored in the variables word1, word2, and word3. The values of the variables are to be updated as shown in the following table.
(table)
Which of the following code segments can be used to update the values of the variables as shown in the table?