public class HelloWorld{ public static void main(String[] args) { int one = 10 ; int two = 20 ; int three = 0 ; int a =one+two; int b =two*2; int c =(two*2)-one; int d =two*=one; int f =two/
运算正确了 但是倒数第二个数值算成了20 什么情况
运算正确了 但是倒数第二个数值算成了20 什么情况
2020-02-06
public class HelloWorld{
public static void main(String[] args) {
int one = 10 ;
int two = 20 ;
int three = 0 ;
System.out.println("three = one + two ==>"+ (three=one+two));
System.out.println("three += one ==>"+ (three+=one));
System.out.println("three -= one ==>"+ (three-=one));
System.out.println("three *= one ==>"+ (three*=one));
System.out.println("three /= one ==>"+ (three/=one));
System.out.println("three %= one ==>"+ (three%=one));
}
}
这样是不是更好呢
举报