我的代碼是正確的吧應(yīng)該
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+=0ne==>"+three);
? ? ? ? three-=one;
? ? ? ? ?System.out.println("three-=one==>"+three);
? ? ? ? three*=one;
? ? ? ? ?System.out.println("three*=ono==>"+three);
? ? ? ? three/=one;
? ? ? ? ?System.out.println("three/=ono==>"+three);
? ? ? ? three%=one;
? ? ? ? System.out.println("three%=ono==>"+three);
2016-02-23
樓主字母打錯(cuò)了 你后面部分的one 打成ono
其他都沒(méi)問(wèn)題
2016-01-20
? ? ? three/=one;
? ? ? ? ?System.out.println("three/=ono==>"+three);
? ? ? ? three%=one;
? ? ? ? System.out.println("three%=ono==>"+three);
?one ? 不是 ono ? - -.
2016-01-20
沒(méi)錯(cuò)的
2016-01-19
沒(méi)錯(cuò)吧