202k views
1 vote
8) What will display after this program executes?a +5+4 * 2b + 4 MOD 5DISPLAY a + b

8) What will display after this program executes?a +5+4 * 2b + 4 MOD 5DISPLAY a + b-example-1

1 Answer

4 votes

Step 1. Finding the value of a.

To find the value of a, we need to solve the following expression:


5+4\cdot2

The multiplication should be done before the addition:


5+8

thus the result is:


13
a=13

User Tom Wyllie
by
7.7k points
Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.

9.4m questions

12.2m answers

Categories