int a=one+two; System.out.println(a);
int b=(a+=one);System.out.println(b);
int c=(b-=one);System.out.println(c);
int d=(c*=one);System.out.println(d);
int e=(d/=one);System.out.println(e);
int f=(e%=one);System.out.println(f);
int b=(a+=one);System.out.println(b);
int c=(b-=one);System.out.println(c);
int d=(c*=one);System.out.println(d);
int e=(d/=one);System.out.println(e);
int f=(e%=one);System.out.println(f);
2015-08-04
int sum = age1+age2+age3+age4;
double avg = sum/4;
int minus = age1-age2;
int newAge = --age1;
double avg = sum/4;
int minus = age1-age2;
int newAge = --age1;
2015-08-04
public class HelloWorld{
public static void main(String[] args) {
String a="我爱慕课网";
String b="www.imooc.com";
System.out.printf(a+"\n"+b);
}
}
public static void main(String[] args) {
String a="我爱慕课网";
String b="www.imooc.com";
System.out.printf(a+"\n"+b);
}
}
2015-08-04
System.out.println("加分前成绩:"+score);
for( ; true ; score++ ){
if(score<60){
count++;
continue;
}
System.out.println("加分后成绩:"+score);
System.out.println("共加了"+count+"次!");
break;
}
for( ; true ; score++ ){
if(score<60){
count++;
continue;
}
System.out.println("加分后成绩:"+score);
System.out.println("共加了"+count+"次!");
break;
}
for( count = 1; true ; count++){
if((num/=10)!=0)
continue;
System.out.println("它是个"+count+"位的数!");
break;
if((num/=10)!=0)
continue;
System.out.println("它是个"+count+"位的数!");
break;
if ( score > 80) {
if ( sex == "女") {
System.out.println("进入女子组决赛");
} else {
System.out.println("进入男子组决赛");
}
} else {
System.out.println("淘汰");
}
}
}
if ( sex == "女") {
System.out.println("进入女子组决赛");
} else {
System.out.println("进入男子组决赛");
}
} else {
System.out.println("淘汰");
}
}
}
2015-08-03