我這個代碼里面 / 沒用,應(yīng)該怎么做呀?求大佬解答
public class HelloWorld{
? ? public static void main(String[] args) {
? ? int one = 10 ;
? ? ? ? int two = 20 ;
? ? ? ? int three = 0 ;
? ? ? ? three = one+tow;
? ? ? ? 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);
? ? ? ??
? ? ? ??
? ? ? ??
? ? ? ??
? ? ? ??
? ? ? ??
? ? ? ??
? ? ? ??
? ? ? ??
? ? ? ??
? ? ? ??
? ? ? ??
? ? ? ??
? ? ? ??
? ? ? ??
? ? ? ??
? ? ? ??
? ??
}
}
2020-09-24
第六行的two,寫成tow了。
2020-09-28
下次記得報報錯一起發(fā)出來
2020-09-25
謝了,大佬