Solution to . What is the value of x after each of these statements is encountered in … - Sikademy
Author Image

Archangel Macsika

. What is the value of x after each of these statements is encountered in a computer program, if x = 1 before the statement is reached? a) if x + 2 = 3 then x := x + 1

The Answer to the Question
is below this banner.

Can't find a solution anywhere?

NEED A FAST ANSWER TO ANY QUESTION OR ASSIGNMENT?

Get the Answers Now!

You will get a detailed answer to your question or assignment in the shortest time possible.

Here's the Solution to this Question

if x+2=3 then x:=x+1;

Ans-

x+2=3

1+2=3

3=3  so x:=1+1;

x:=2;


Related Answers

Was this answer helpful?

Join our Community to stay in the know

Get updates for similar and other helpful Answers

Question ID: mtid-5-stid-8-sqid-575-qpid-460