By operator precedence it should be 22 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3
1st Nov 2020, 12:22 PM
Rai
Rai - avatar
13 Answers
+ 5
4%7+9*2-1 4+9*2-1 4+18-1 21
1st Nov 2020, 12:26 PM
Abhay
Abhay - avatar
+ 3
4 % 7 + 9 * 2 - 1 ( 4 % 7 = 4) = 4 + 9 * 2 - 1 (9 * 2 = 18) = 4 + 18 - 1 (4 + 18 = 22) = 22 - 1 = 21
1st Nov 2020, 12:26 PM
XXX
XXX - avatar
+ 3
All answers are correct so I will not mark anything..it would be partiality 😅
1st Nov 2020, 1:16 PM
Rai
Rai - avatar
+ 1
How you got 22?
1st Nov 2020, 1:11 PM
Seb TheS
Seb TheS - avatar
+ 1
How 4%7=4..it should be 5 right 5+9*2-1 =22
1st Nov 2020, 1:12 PM
Rai
Rai - avatar
+ 1
Please tell
1st Nov 2020, 1:13 PM
Rai
Rai - avatar
+ 1
Hari No, 4%7=4, how did you get 5?
1st Nov 2020, 1:13 PM
Seb TheS
Seb TheS - avatar
+ 1
40/7 remainder..5
1st Nov 2020, 1:14 PM
Rai
Rai - avatar
+ 1
Hari why should 4 % 7 be 5? Do you know what the modulus operator does? It gives the remainder after dividing the first number by the second number. Here, when 4 is divided by 7, quotient is 0 and remainder is 4, so 4 % 7 is 4
1st Nov 2020, 1:14 PM
XXX
XXX - avatar
+ 1
Ok yes..XXX you solved my doubt 😄
1st Nov 2020, 1:15 PM
Rai
Rai - avatar
+ 1
Ok thanks Seb TheS
1st Nov 2020, 1:16 PM
Rai
Rai - avatar
0
Hari It was 4%7, not 40%7.
1st Nov 2020, 1:15 PM
Seb TheS
Seb TheS - avatar
0
Aslam Aliquem friends
2nd Nov 2020, 3:19 AM
Najeebullah Saand