化繁琐为简洁
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);
three +=one;
System.out.println("运算结果:"+three);
three -=one;
System.out.println("运算结果:"+three);
three *=one;
System.out.println("运算结果:"+three);
three /=one;
System.out.println("运算结果:"+three);
three %=one;
System.out.println("运算结果:"+three);
}
}
如何省略繁琐的一问一答的形式,直接在结尾总结出来!但是得出的结果形式差不多!