*
**
***
****
*****
******
*******
********
*********
**********
***********
************
*************
**************
***************
****************
*****************
******************
*******************
********************
**
***
****
*****
******
*******
********
*********
**********
***********
************
*************
**************
***************
****************
*****************
******************
*******************
********************
2015-03-15
System.out.println("加分前成绩:"+score);
//打印输出加分前成绩
for(score=53;score<60;score++) {
count++;
}
System.out.println("加分后成绩:"+score);
System.out.println("共加了"+count+"次");
//打印输出加分前成绩
for(score=53;score<60;score++) {
count++;
}
System.out.println("加分后成绩:"+score);
System.out.println("共加了"+count+"次");
three=one+two;
System.out.println("three = one+ two ==> "+three);
……
System.out.println("three = one+ two ==> "+three);
……
2015-03-15
public class test{
public static void main(String[] args){
double heightavg1=176.2;
int heightavg2=(int)heightavg1;
System.out.println(heightavg1);
System.out.prinln(heightavg2);
}
}
public static void main(String[] args){
double heightavg1=176.2;
int heightavg2=(int)heightavg1;
System.out.println(heightavg1);
System.out.prinln(heightavg2);
}
}
2015-03-15
public class HelloWorld{
public static void main(String[] args) {
String city="湖北";
System.out.println("我的家乡在:"+city);
}
}
public static void main(String[] args) {
String city="湖北";
System.out.println("我的家乡在:"+city);
}
}
2015-03-15
public class HelloWorld{
public static void main(String[] args) {
String h101="我爱慕课网";
String H102="www.imooc.com";
System.out.println(h101);
System.out.println(H102);
}
}
public static void main(String[] args) {
String h101="我爱慕课网";
String H102="www.imooc.com";
System.out.println(h101);
System.out.println(H102);
}
}
2015-03-15
if(age>=18){
System.out.println("成年");
}
else{
System.out.println("未成年");
}
System.out.println("成年");
}
else{
System.out.println("未成年");
}
2015-03-15