public class HelloWorld {
public static void main(String[] args) {
int one = 388;
if(one>100);
System.out.println("合格");
if(one>360);
System.out.println("优秀");
怎么写啊,小白
public class HelloWorld {
public static void main(String[] args) {
int one = 388;
if(one>100&&one<360);
System.out.println("合格");
if(one>360);
System.out.println("优秀");
public class HelloWorld {
public static void main(String[] args) {
int one=388;
if(one>360){
System.out.println("优秀");
}else if(one>100){
System.out.println("合格");
}
}
}
应该是这样吧。。。错了别打我。。。我也刚学