You are on page 1of 1

NILAI input (i)= -11

Step Statement Notes X Y

1. X = int(input()) User input the -11 -


value
(we use -11 as a
value)

2. y=8 - -11 8

3. If abs(x) > 10 This evaluates to - -


false

4. false false - -

NILAI input (ii) = 11


Step Statement Notes X Y

1. X = int(input()) User input the 11 -


value
(we use 11 as a
value)

2. y=8 - 11 8

3. If abs(x) > 10 This evaluates to - -


Y +=x true
X -=1

4. y +=x y = 11 + 8 11 19

5. X -=1 x = 11 -1 10 19

You might also like