Ask Question
9 November, 06:15

If Count = 1 and X = 3, what will be displayed when code corresponding to the following pseudocode is run? Do Set Y = Count + X Write Y Set Count = Count + 1 While Count < = X

+2
Answers (1)
  1. 9 November, 09:33
    0
    4 5 6

    Explanation:

    Since there is a do-while loop, you need to check the values for each iteration until the condition (Count < = X) is not satisfied.

    First iteration - > Count = 1 and X = 3, Y = 1 + 3, Write Y - > 4

    Second iteration - > Count = 2 and X = 3, Y = 2 + 3, Write Y - > 5

    Third iteration - > Count = 3 and X = 3, Y = 3 + 3, Write Y - > 6

    After the third iteration count is equal to 4 and X is equal to 3. That is why loop ends.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “If Count = 1 and X = 3, what will be displayed when code corresponding to the following pseudocode is run? Do Set Y = Count + X Write Y Set ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers