3-3 習(xí)題
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);
????????
}
}請(qǐng)問(wèn)這段代碼的問(wèn)題出在哪里?為什么無(wú)法顯示答案
2017-02-23
這代碼沒(méi)問(wèn)題,應(yīng)該是eclipse的運(yùn)行問(wèn)題吧