我這樣寫有什么問題嗎?怎么通過不了
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);
? ? }
}
? ? ? ??
? ? ? ??
2017-10-08
能運(yùn)行的
2017-09-24
能運(yùn)行的啊!
2017-09-24
不用輸出
2017-09-24
為啥,我能運(yùn)行。你的運(yùn)行不了呢?
2017-09-24
它要的輸出是單獨(dú)一個變量three,你這樣輸出是一個字符串"three = one + two ==>"再加一個變量three。