0

7%(5//2) ??

(5//2)= 2 ,, 7 mod 2 = 1 mean 2*3 =6-7 =1

7th Jun 2017, 4:37 AM
Mohammed Sallam
Mohammed Sallam - avatar
1 Respuesta
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.
7th Jun 2017, 7:28 AM
Sapphire