0
Explain me floor division and modulo PLEASE .....
A friend in need !!!!!! HELP ME
1 Réponse
+ 3
The result of a modulo division is the remainder of an integer division of the given numbers.
That means:
27 / 16 = 1, remainder 11 => 27 mod 16 = 11
Other examples:
30 / 3 = 10, remainder 0 => 30 mod 3 = 0 35 / 3 = 11, remainder 2 => 35 mod 3 = 2
floor division Also referred to as integer division. The resultant value is a whole integer, though the result’s type is not necessarily int.
30//3=10 and 5//2=2
https://www.sololearn.com/discuss/85324/?ref=app
https://www.sololearn.com/discuss/299745/?ref=app
https://www.sololearn.com/discuss/378155/?ref=app