Ask Question
15 June, 02:50

Look at pseudocode segment below. y ← x + x + x + x + x / / line a z ← y + y + y / / line b If x = 6 before this segment is executed, what is the value of z after execution?

+3
Answers (1)
  1. 15 June, 02:55
    0
    90.

    Step-by-step explanation:

    We have two lines of code:

    y ← x + x + x + x + x

    z ← y + y + y

    and, x=6 before the execution. Then, when the program starts to run we obtain:

    y ← 6 + 6 + 6 + 6 + 6

    y ← 30

    z ← 30+30+30

    z ← 90.

    Then, the value of z after excecution is 90.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “Look at pseudocode segment below. y ← x + x + x + x + x / / line a z ← y + y + y / / line b If x = 6 before this segment is executed, what ...” in 📗 Mathematics if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers