What is the solution to each of the following arithmetic exp

What is the solution to each of the following arithmetic expressions? 3 + 4 * 2 + 9 48/6 * 4 - 3 40 - 6^2/3 71 Mod 9 9 \\ 4 + 3 2^3 + (8 - 5) (15Mod2) - 1 + 4*(16 \\ 5)

Solution

Note: Presidence of arithmatic operators is */+-. Note that \'\\\' is integer division operator, for example 10\\3 = 3.

a) 3 + 4*2 + 9 = 3 + (4*2) + 9 = 3 + 8 + 9 = 20    

b) 48/6*4 - 3 = (48/(6*4 ) ) - 3 =  -1

c) 40 - 6^2/3 = 40 - 36/3 = 40 - 12 = 28

d) 71 Mod 9 = 8

e)9\\4 + 3 = 2 + 3 = 5

f) 2^3 + (8 - 5) = 8 + (8 - 5) = 16 - 5 = 11

g) (15 Mod 2) - 1 + 4*(16\\5) = 1 - 1 + 4*(16\\5) = 0 + 4*(3) = 12

 What is the solution to each of the following arithmetic expressions? 3 + 4 * 2 + 9 48/6 * 4 - 3 40 - 6^2/3 71 Mod 9 9 \\ 4 + 3 2^3 + (8 - 5) (15Mod2) - 1 + 4*

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site