不行呀輸出不了請(qǐng)大神幫忙看看
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-09-24
慕課的提交代碼有時(shí)候會(huì)有點(diǎn)問(wèn)題,eclipse能輸出就證明可以
2019-09-23
three = one + two ==> 30
three += one ==> 40
three -= one ==> 30
three *= one ==> 300
three /= one ==> 30
three %= one ==> 0
Process completed.