public class HelloWorld {
public static void main(String[] args) {
int m = 5;
int n = 7;
int x =(m*8/(n+2))%m; //这里运算的结果x=4,我不明白,5*8/9=4.444, 4.444%5=4?,这个是怎么算出来是4的
System.out.println("m:" + m);
System.out.println("n:" + n);
System.out.println("x:" + x);
}
}
Fiona0126
相关分类