asked 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

answered
User Tom Wyllie
by
7.7k points
Welcome to Qamnty — a place to ask, share, and grow together. Join our community and get real answers from real people.