In: Computer Science
int
50+20 * (50/4) /4
Answer
The answer is 110.
This equation is read as 50+((20*(50/4))/4).
Because it is int n type decimal values are rounded off in every bracket, resulting 110.
To understand this read the rule of precendence :
Rules of Operator Precedence:
( ( a + b ) + c )
the operators in the innermost pair of parentheses are applied first.
Applying rule 2 after the parenthesis gives us the output as 110.