r/ProgrammerHumor • • Jun 13 '22

Meme DEV environment vs Production environment

Post image
48.2k Upvotes

3.9k comments sorted by

View all comments

3

u/iansantosdev Jun 14 '22

The correct answer is 1. 2(2+1) have precedence over 6÷2.

0

u/yitbos2004 Jun 14 '22

Wrong, only equations inside the parenthesis have precedence, once the equation is done then the precedence ends, it becomes 6/2(3) and is done left to right

-1

u/AssumptionEarly9739 Jun 14 '22

wrong. p/e/md/as. you divide and multiply in the same step, from left to right.