Determining value of x


Assignment:

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 + 2 = 5 AND 3 + 4 = 7 then x:= x + 1
(b)    if 2 + 3 = 5 XOR 3 + 4 = 8 then x:= x + 1

Provide complete and step by step solution for the question and show calculations and use formulas.

Solution Preview :

Prepared by a verified Expert
Mathematics: Determining value of x
Reference No:- TGS01914724

Now Priced at $20 (50% Discount)

Recommended (92%)

Rated (4.4/5)