on a lighter note...

IMG_4914.png
 
And the correct answer is....

View attachment 678114
They're both wrong - the answer is 12.

The commutative property + Order of operations + disambiguation results in

6 + 6 + (6 x 6 x 0)

PS C:\WINDOWS\system32> 6 + 6 + 6 * 6 * 0
12

Python, C++, Java, C# - all yield the same result.

you could sort-of ignore OOO if the equation were re-written and evaluated left to right as

6 * 6 * 0 + 6 + 6

Without understanding the commutative property, you would end up with 2 different and "correct" answers.

But the commutative declares that 6 + 6 + 6 * 6 * 0 = 6 * 6 * 0 + 6 + 6. If we didn't have that property, computer programming would not work because math wouldn't work.
 
Last edited:

Forum statistics

Threads
62,594
Messages
1,374,916
Members
120,475
Latest member
Zlidensi
 

 

 

Latest profile posts

Huntergene wrote on SCmackey's profile.
The pictures have been sent.
Mwag wrote on Juan Loco's profile.
I'm interested in Merkel
Where in MO are you located?
I have an unfired T rex 577 if anyone is interested in acquiring it . Absolutely spotless, flawless and well kept . It's rare as it gets . Mouth watering ? Let me know if you feel like making an offer .
Mr Brown in Calif.
Nevada Mike wrote on 50reloader's profile.
I need to know if this is legit. Photo with today's paper would do it.

Thanks
Monster Impala for Ricky with his trusty bow !
01696dfa-f596-4f46-aafa-2d37c38f3493.jpeg
 
Top