int age = 7;
// primary student的定义: 6~12岁
boolean isPrimaryStudent = (age >= 6) && (age <= 12);
System.out.println(isPrimaryStudent ? "Yes" : "No");
Sign in to make a reply
追风少年
int age = 7;
// primary student的定义: 6~12岁
System.out.println(isPrimaryStudent ? "Yes" : "No");