怎么 總是提示請(qǐng)檢查輸出是否匹配:兩數(shù)之和為:36,再試試!
public class HelloWorld{
? ? public static void main(String[] args) {
int a=12;
? ? ? ??
int b=24;
? ? ? ??
int sun=a+b;
? ? ? ??
System.out.println("兩數(shù)之和為:"+sum);
}
}
public class HelloWorld{
? ? public static void main(String[] args) {
int a=12;
? ? ? ??
int b=24;
? ? ? ??
int sun=a+b;
? ? ? ??
System.out.println("兩數(shù)之和為:"+sum);
}
}
2015-08-13
舉報(bào)
2015-08-13
int sun=a+b;
System.out.println("兩數(shù)之和為:"+sum);-----親,你上面定義的是sun,下面用的是sum。。。要細(xì)心哦