第四行括号里不用score,直接输入考试成绩68怎样
public class HelloWorld{
public static void main(String[] args) {
int score=68;
String mark =(68>=60) ? "及格":"不及格";
System.out.println("考试成绩如何:"+mark);
}
}
public class HelloWorld{
public static void main(String[] args) {
int score=68;
String mark =(68>=60) ? "及格":"不及格";
System.out.println("考试成绩如何:"+mark);
}
}
2016-05-11
举报