nakedpeanut
Expert Member
Hahaha so i've given this to the office but just the 48/2x part, quite funny.
Look I agree it's 288 if you follow the rules without adding your own brackets to clarify an intentionally ambiguous expression that should have been written as
48
-- * (9+3)
2
or
48
----
2(9+3)
however it's trolling because no one in their right mind should write it as 48/2(9+3). If you gave me a spec with this as some function I would most likely slap you and tell you to add parenthesis.
it's the same as writing
1/2/2
do you mean
1
--
(2/2)
or
(1/2)
----
2
??
using the rules 1/2/2 = 1/4 and not 1 as a lot will no doubt argue..
but again it's written to be intentional ambiguous...
Look I agree it's 288 if you follow the rules without adding your own brackets to clarify an intentionally ambiguous expression that should have been written as
48
-- * (9+3)
2
or
48
----
2(9+3)
however it's trolling because no one in their right mind should write it as 48/2(9+3). If you gave me a spec with this as some function I would most likely slap you and tell you to add parenthesis.
it's the same as writing
1/2/2
do you mean
1
--
(2/2)
or
(1/2)
----
2
??
using the rules 1/2/2 = 1/4 and not 1 as a lot will no doubt argue..
but again it's written to be intentional ambiguous...