public static void main(String[] args) { int age = 7; // primary student的定义: 6~12岁 boolean isPrimaryStudent = true; if (age < 6 || age > 12) { isPrimaryStudent = false; } System.out.println(isPrimaryStudent ? "Yes" : "No"); }
Sign in to make a reply
几字藏雪哥龙