This week's book giveaway is in the Reactive Progamming forum. We're giving away four copies of Reactive Streams in Java: Concurrency with RxJava, Reactor, and Akka Streams and have Adam Davis on-line! See this thread for details.
I found this in my local newspaper as an exercise which tricked many and as a result answered incorrectly. According to an article, even some calculators which support expressions provide wrong answer.
Here it is:
8 / 2 (2 + 2) = ?
It is quite related with some questions we see often here on ranch. It didn't trick me for a second, did you?
When I was in primary school (1962-1968) we had the sentence: Meneer Van Dam Wacht Op Antwoord, meaning powers, multiplication, division, square roots, addition, subtraction. It didn't mention parentheses, but the answer would have been 1. Like 3 - 3 + 3 would have been -3. But then came these computers, spoiling it all...
There are three kinds of actuaries: those who can count, and those who can't.
You're not going crazy. You're going sane in a crazy word. Find comfort in this tiny ad: