Discuss / Java / 练习题答案

练习题答案

Topic source

追风少年

#1 Created at ... [Delete] [Delete and Lock User]

int age = 7;

// primary student的定义: 6~12岁

boolean isPrimaryStudent = (age >= 6) && (age <= 12);

System.out.println(isPrimaryStudent ? "Yes" : "No");


  • 1

Reply