Computer Science for IGCSE & O level - Algorithm Design And Problem Solving (Section 3 - No. 11)

What is the result of the following pseudocode? `x = 5` `y = x + 2` `OUTPUT y`
5
7
x + 2
Undefined

Explanation

x = 5, y becomes 5 + 2, and 7 is printed.

Comments (0)

Advertisement