publicclassHelloWorld{publicstaticvoidmain(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);}}
publicclassHelloWorld{publicstaticvoidmain(String[] args){int score=68;
String mark =(score >60)?"及格":"不及格";
System.out.println("考试成绩如何:"+mark);}}
publicclassHelloWorld{publicstaticvoidmain(String[] args){int m =5;int n =7;int x =(m*8/(n+2))%m;
System.out.println("m:"+ m);
System.out.println("n:"+ n);
System.out.println("x:"+ x);}}