(8+4) / 2 = 8? No..... = 6 ...... | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

(8+4) / 2 = 8? No..... = 6 ......

31st Oct 2019, 7:47 AM
ElChocaPik3
ElChocaPik3 - avatar
2 Answers
+ 2
Exactly the same in maths. First parantheses, then multiplication and division and at the end addition and subtraction.
31st Oct 2019, 7:50 AM
Théophile
Théophile - avatar
+ 1
Argee with answer below, but wanted to add, that in the answer you get not 6, but 6.0 (float), bcs of dividing. If you want to sum 8/2 and 4, you can do like this: (8/2) + 4 # 8
31st Oct 2019, 10:02 AM
Asman-H
Asman-H - avatar