How to solve it. (X%4)*3-2. If x=9 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to solve it. (X%4)*3-2. If x=9

plz aws in step by step

31st Dec 2016, 9:30 AM
Jyoti Jyoti
Jyoti Jyoti - avatar
1 Answer
+ 1
If x is 9, x % 4 is equals to the remainder of x / 4, which is 1. Then, the multiplication takes precedence, so 1 * 3 which is 3. Finally, 3 - 2 = 1, which is the end result of this expression.
31st Dec 2016, 9:39 AM
Dao
Dao - avatar