4/5不是等于0.8吗,4怎么来的啊
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); }}
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); }}
2021-01-17
举报