+ 6
Hi guys i have questions and this is the first one. How this operation is i mean the answer should be 6 but ...
a=3*1+1
11 Réponses
+ 2
اول ضرب انجام میشه بعد جمع.
قانون ریاضیه
+ 3
3*1 =3 plus 1 is 4
+ 2
If you want the answer to be 6 write it like this.
a = 3*(1+1)
+ 2
ممنونم
+ 1
thank you Nitzan
0
i know that but i'm curious about how it be 4
0
3*(1+1)
0
yes I'll agree with nitzan
0
See it completely depends on brackets i.e priority.
Which means if you add 1+1 in first place then it will be 2 and then multiply with 3 which will give you 6.
3*(1+1)=6
But if you first multiply 1 and 3 and then add one to it, then it will become for.
(3*1)+1=4
0
not 6 x 3 = 18 which is the closeset to 20...so // floor round of forward to 20..