Math.pow(23,29)%91 的結(jié)果為什么是錯誤的?
public class T1 {
public static void main(String[] args) {
double c = Math.pow(23,29)%91.0;
System.out.println(c);
}
}
輸出:28.0
int c = (int)Math.pow(23,29)%91;
System.out.println(c);
輸出 36
然而這都不是正確答案
正確取余后的值是4才對
添加回答
舉報
0/150
提交
取消