package Operator;
public class Demo08 {
public static void main(String[] args) {
//x ? y: z
//如果x==true,
int score = 50;
String type = score <60 ?"不及格":"及格";
//if
System.out.println(type);
int score1 = 70;
String type1= score1 <60 ?"不及格":"及格";
//if
System.out.println(type1);
}
}