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
63,671
Messages
1,401,401
Members
126,313
Latest member
Vikimtz
 

 

 

Latest posts

Latest profile posts

1760558427422.png

Flights Booked
Hotel Booked
Booth Booked

We are very excited to come to Salzburg for the first time.
Should you at all have any interest in hunting with me and want to discuss different options please do not hesitate to contact me and we can set something up.
Hyde Hunter wrote on malcome83's profile.
where are you located? I would be happy to help you with you doing the reloading but I will only load for a very few real close friends as posted before liability is the problem. but will help you.
Screenshot 2025-10-09 at 7.53.47 AM.png
A two minute video I made of our recent Safari. I think it turned out well
Speedster wrote on Sue Tidwell's profile.
Just received your book. It will be a Christmas present from my wife. Looking forward to read it.
 
Top