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岁
boolean isPrimaryStudent = age>=6 && age <= 12;
System.out.println(isPrimaryStudent ? "Yes" : "No");