How Does Modulus Divison Work

后端 未结 19 1589
栀梦
栀梦 2020-11-22 06:55

I don\'t really understand how modulus division works. I was calculating 27 % 16 and wound up with 11 and I don\'t understand why.

I can\'t

19条回答
  •  再見小時候
    2020-11-22 07:19

    modulus division is simply this : divide two numbers and return the remainder only

    27 / 16 = 1 with 11 left over, therefore 27 % 16 = 11

    ditto 43 / 16 = 2 with 11 left over so 43 % 16 = 11 too

提交回复
热议问题