Find modified value

Report a typo

A programmer wrote pseudocode for an algorithm that alternately modifies the sum of input numbers.

BEGIN
    NUMBER A, B
    A = A + 2
    B = B + 2
    sum = A + B
    sum = sum + 10
    sum = sum * 5
    RETURN sum
END

The input for A is 2 and for B is 4. At which line should the programmer put a breakpoint so that the value of sum is 20?

Tip: Remember that values are counted before the breakpoint

Select one option from the list
___

Create a free account to access the full topic