3 ms·
Computers will conclude the answer is 1 as they will prioritise the multiply. Now us humans will get 9 as they will do the 6/2 and then multiply the result wit
by Zenst 14y ago
Computers will conclude the answer is 1 as they will prioritise the multiply.
Now us humans will get 9 as they will do the 6/2 and then multiply the result with the (1+2) for 3x3.
Now given the multiply is implied and computers like to have that symbol in many languages and the divide sign as again a form not overly used in programming languages, then it is clearly expressed in a form for human consumption. With that we imply the 6 divided by 2 is in its own bracket and will think it is 9, then we will think again if we know computers and then think 1.
Moral being whilst lots of brackets and braces can look untidy, they do clarify beyond doubt.
- andrewmunsell 14y agoNo, they won't. Computers will compute it as nine because they evaluate the parenthesis, then go left to right. 6 / 2 (1 + 2) 6 / 2 * 3 3 * 3 9