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);
}
}
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);
System.out.println(three+=one);
System.out.println(three-=one);
System.out.println(three*=one);
System.out.println(three/=one);
System.out.println(three%=one);
System.out.println=("three%=one==>"+three);
应该是 System.out.println("three%=one==>"+three);
的吧
你的符号全是错了,改一下吧
多了一个等于号
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);
}
}