You don’t necessarily have to do parentheses first. What matters is that the things inside the parentheses are a group that you can’t break apart. If you have 10÷2+3-2*(2+1) you can do the division first 5+3-2*(2+1) then the addition outside the parentheses 8-2*(2+1) It’s just that before you do the multiplication of the term outside the parentheses, you have to handle the parentheses group, so you get 8-2*3 -> 8-6 -> 2
Comment on I dunno
A_Chilean_Cyborg@feddit.cl 3 weeks agoYou do parenthesis first and then multiplications and then sums, you did parenthesis, then sums, then multiplications, wich is wrong.
merc@sh.itjust.works 3 weeks ago
SmartmanApps@programming.dev 4 days ago
You don’t necessarily have to do parentheses first
Yes, you do necessarily have to do it first
What matters is that the things inside the parentheses are a group that you can’t break apart
And outside, and you must do them first. You haven’t finished Brackets until you have 5(8-5)=15.
10÷2+3-2*(2+1) you can do the division first
only because you’ve separated that part with a plus sign
SmartmanApps@programming.dev 4 days ago
There aren’t any, only Addition and Brackets (and Subtraction inside Brackets)
Image
A_Chilean_Cyborg@feddit.cl 4 days ago
Uh huh.