求大佬解答一下~
表达式到底要怎么写啊。。。。。。求助~
表达式到底要怎么写啊。。。。。。求助~
2018-07-18
public class HelloWorld{
public static void main(String[] args) {
int one = 10 ;
int two = 20 ;
int three = 0 ;
three=one+two;
System.out.println("three=one+two==>"+three);
three+=one;
System.out.println ("three+=one==>"+three);
three-=one;
System.out.println ("three-=one==>"+three);
three*=one;
System.out.println ("three*=one==>"+three);
three/=one;
System.out.println ("three/=one==>"+three);
three%=one;
System.out.println ("three%=one==>"+three);
}
}
举报