double a=2, b=43, c=11, d=12
(b-a) / (a*d) % (b / a)
Solution: Whenever a number of operators are working over a number of operands, the expression must be evaluated in accordance with the precedence of the operators that are working upon these operands. But since in this case clear distinction has been given in the form of braces, therefore the expression can be evaluated on the basis of these braces.
The expression (b-a) / (a*d) % (b / a) can be broken down into three expressions:
A = b-a
B = a*d
C = b/a
expression becomes A/(B%C)
given, a=2, b=43, c=11, d=12
therefore,
A = 43 - 2 = 41
B = 2 * 12 = 24
C = 43/2 = 21.5 = 21
Expression: A/(B%C) = 41/(24%21)
41/3 = 13.66 = 13
Here's the solution to your question and it is absolutely correct, please provide it a 100% rating. Thanks for asking and happy learning!!
Get Answers For Free
Most questions answered within 1 hours.