4 Answers
New AnswerFloor division divides and output the quotient rounded down to the nearest integer Example: 5//2 => 2 #because 5/2 is 2.5 rounded down so 2 Modulo operator divides and output the remainder Example: 5%2 => 1 #the remainder is 1
If there is no remainder, then the modulo operator returns 0 :) 100 % 20 => 0
so what if in modulo operator there is no remainder? is it not applicable for modulo operator?
SoloLearn Inc.
4 Embarcadero Center, Suite 1455Send us a message