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
65,461
Messages
1,444,932
Members
136,134
Latest member
Strela
 

 

 

Latest profile posts

Made it to Augusta Georgia yesterday for a meeting, hunt bookings are looking good for 2026 and 2027, had a great time on our Alabama safari shot a rutting deer at 200 yards with 7mm PRC near Huntsville and then headed on to Butler Alabama and semi guided my first deer ever shot a very nice broken off 8 point with hunter there and spend a few days on 1100 acres hunting preserve awesome place!
Ray B wrote on JMJ888's profile.
I am righthanded, so not interested in the rifle, but I have a 375 RUM and 350 gr bullet loading data is very hard to come by. If you could reply with information regarding your loads I would greatly appreciate it. Thank you, Ray Boone, Leavenworth, WA
mcr wrote on gbflyer's profile.
Hello - I was looking at your post from several years ago regarding the Winchester 300 H&H. Any chance you still have the lefty M70 300 H&H for sale?
Thank you, Mike
'68boy wrote on Rare Breed's profile.
Wife and I will attend ah dinner in Nashville Friday night. Jay Sheets and wife Chris
crossfire3006 wrote on Hornedfrogbbq's profile.
An excellent AH member right here! I had a fantastic transaction with Hornedfrogbbq (I was the seller). His communication was first rate, payment was extremely fast, and I would have absolutely no reservations at all dealing with him again. Thank you, F!
 
Top