Explore BrainMass
Share

Explore BrainMass

    Discrete Math

    This content was COPIED from BrainMass.com - View the original, and get the already-completed solution here!

    What is the value of x after each of the following statements are encountered in a computer program, if x = 1 before the statement is reached. Explain fully.

    (a) if 2 + 3 = 6 AND 3 + 4 = 7 then x:= x + 1
    (b) if 2 + 3 = 6 XOR 3 + 4 = 7 then x:= x + 1

    © BrainMass Inc. brainmass.com October 10, 2019, 2:27 am ad1c9bdddf
    https://brainmass.com/math/discrete-math/discrete-math-378155
    $2.19