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);
}
}
你的代码没问题的。可能是网页有有问题,我之前也出现了你的这个问题,你代码是没错的,要么重新打开网页或者清一下缓存,应该会好的。
我把代码复制去看了下,是没问题的
可以输出成功啊
没错啊,对的