能幫我看一下哪里出問題嗎
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.prinln("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-07-03
three /= one;? 這個結果不是int類型了,而是double類型了。
2020-07-12
+=? 那塊 println 少一個t?
2020-07-04
把 one two three 定義為double類型嗎
2020-07-04
那應該怎么修改呢