`java (0 % 2 != 0) == false`

后端 未结 6 994
闹比i
闹比i 2021-01-18 04:55

The part I keep getting stuck on is boolean(0 % 2 !=0) == false. I mean if 2 goes into 0, 0 times then the remainder would be 2, and 2 does not equal 0. S

6条回答
  •  悲哀的现实
    2021-01-18 05:38

    if 2 goes into 0, 0 times then the remainder would be 2.

    it is not 2 goes into 0 but 0 goes into 2, so the result of the devision is 0 and the reminder is 0.

提交回复
热议问题