為什么運行失????
? ?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);
? ? }
}? ? ? ??
2019-08-19
public?class?HelloWorld{????public?static?void?main(String[]?args)?{ ????int?one?=?10?;????????int?two?=?20?;????????int?three?=?0?;????????int?a?=?one?+?two;????????System.out.println("three?=?one?+?two?==>"?+?a); }}2019-08-07
你這個好像是對的=-=
2019-08-07
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);????}}2019-08-07
全部代碼看看啊,貼這一段咋看啊?