例如, 10 % 3 等于 1。在 Java 中, “ % ”可以应用于整数类型和浮点类型。因此 10.0 % 3.0 也是 1。下面的程序说明了求余运算符的用法。// Demonstrate the s operator ...
確定! 回上一頁