0

Compute the following arithmetic expressions according to precedence (a+b/(c-5))/((d+7)/(e-37)%3

19th Mar 2017, 2:31 PM
Tehreem
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.
20th Mar 2017, 6:17 AM
Álvaro
+ 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)
8th Oct 2020, 7:18 PM
Ossama Mehmood
Ossama Mehmood - avatar
0
The answer will be zero if you put a=1,b=2,c=3,d=4,e=5
8th Oct 2020, 6:43 PM
Saad Jillani
Saad Jillani - avatar