笑了 int sum = 105;
double avg = 100-74;
int minus = 6;
int newAge = 23;
double avg = 100-74;
int minus = 6;
int newAge = 23;
2015-08-04
public class HelloWorld{
public static void main(String[] args) {
String city=“ShanDong”;
System.out.println("我的家乡在:"+city);
}
}
public static void main(String[] args) {
String city=“ShanDong”;
System.out.println("我的家乡在:"+city);
}
}
2015-08-04
if(age>60)
System.out.println("老年");
else if(60>=age>40)
System.out.println("中年");
else if(40>=age>18)
System.out.println("少年");
else
System.out.println("童年");
System.out.println("老年");
else if(60>=age>40)
System.out.println("中年");
else if(40>=age>18)
System.out.println("少年");
else
System.out.println("童年");
2015-08-04