I can understand 3%2 gives 1. As 2*1+1 so 1 is remainder. Why -3%2 gives -1, 3%-2 gives 1 and -3%-2 gives -1. Lot of confusion.
请有人解释/澄清.试图找出重复的但找不到类似的东西.
不确定它是否是一个非常愚蠢的问题;-)
c
c ×1