int age = 7;boolean isPrimaryStudent = (age >= 6 && age <= 12 ) ? true : false;if(isPrimaryStudent) System.out.println("Yes");else System.out.println("No");
Sign in to make a reply
Zane