0
7%(5//2) ??
(5//2)= 2 ,, 7 mod 2 = 1 mean 2*3 =6-7 =1
1 Answer
0
Computers follow the human mathematical rules, so, BEDMAS.
Brackets
Exponents
Divide
Multiply
Add
Subtract
In this case, it did the expression inside the brackets first, then the outside expression with the result from the brackets.
in puedocode:
First, how many times does 2 go into 5?
then, take the value 7, divide it by the result from inside the brackets, and return any remainders.