Discuss / Java / 练习

练习

Topic source

ypx0410

#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