0
Compute the following arithmetic expressions according to precedence (a+b/(c-5))/((d+7)/(e-37)%3
3 Answers
+ 3
Parentheses are evaluated first.
Then multiplicative operators (*, /, %) from left to right).
Then additive operators (+, -) from left to right.
Oh BTW you forgot to close a parenthesis.
+ 1
Assume the values of a = 10, b = 20, c = 30, d = 40 & e = 50. It's better to remove the extra parenthesis. It may not affect the answer and help you out to compile it properly on complier. The answer came will be zero - Make sure to give preference to parenthesis than divide and at last modules operator. Have a nice day Stay tune Good-Bye - Regards, Ossama Mehmood (SAM)
0
The answer will be zero
if you put a=1,b=2,c=3,d=4,e=5