一条没看懂的语句!
""x""为什么结果显示为"4"主要是这条语句""int x=(m*8/(n+2))%m;"没看明白"
public class HelloWorld {
public static void main(String[] args) {
int m = 5;
int n = 7;
int x=(m*8/(n+2))%m;
System.out.println("m:" + m);
System.out.println("n:" + n);
System.out.println("x:" + x);
}
}