第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機立即綁定

對否?為什么輸出不對提交可以通過?

public class HelloWorld{

? ? public static void main(String[] args) {

? ?int one = 10 ;

? ? ? ? int two = 20 ;

? ? ? ? int three = 0 ;

? ? ? ? three = one + two ==>30;

? ? ? ? three += one ==> 40;

? ? ? ? three -= one ==> 30;

? ? ? ? three *= one ==> 300;

? ? ? ? three /= one ==> 30;

? ? ? ? three %= one ==> 0;

? ? ? ? System.out.println("three = one + two ==>" + three);

? ? ? ? System.out.println("three += one ==> "+ three);

? ? ? ? System.out.println("three -= one ==> "+ three);

? ? ? ? System.out.println("three *= one ==> "+ three);

? ? ? ? System.out.println("three /= one ==> "+ three);

? ? ? ? System.out.println("three %= one ==> "+ three);}}

? ? ? ? 為什么輸出不對呢
? ? ? ?error: illegal start of expression
three = one + two ==>30;
^
error: illegal start of expression
three += one ==> 40;
^
error: illegal start of expression
three -= one ==> 30;
^
error: illegal start of expression
three *= one ==> 300;
^
error: illegal start of expression
three /= one ==> 30;
^
error: illegal start of expression
three %= one ==> 0;
^
6 errors


正在回答

1 回答

????? ??three = one + two ==>30;

? ? ? ? three += one ==> 40;

? ? ? ? three -= one ==> 30;

? ? ? ? three *= one ==> 300;

? ? ? ? three /= one ==> 30;

? ? ? ? three %= one ==> 0;


這些代碼不對,語法不正確, 舉個例子說明一下:?three = one + two ==>30; ? 這一個是輸出結果,是自己拼接出來的,你只要通過計算得到正確結果就可以了。

three = one + two;

System.out.println("three = one + two ==>" + three); ?//three = one + two是自定義輸出的

0 回復 有任何疑惑可以回復我~
#1

阿斯arth 提問者

非常感謝!
2015-06-16 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消

對否?為什么輸出不對提交可以通過?

我要回答 關注問題
微信客服

購課補貼
聯系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號