l need help!!
为什么运行的结果是这个,我在eclipse运行的结果就是三十。这个程序是怎么运行处得到这个结果的?
为什么运行的结果是这个,我在eclipse运行的结果就是三十。这个程序是怎么运行处得到这个结果的?
2016-10-24
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);
}
举报