I did the same thing.Why is requirment not complete
package en.codegym.task.pro.task03.task0307;
import java.util.Scanner;
/*
To work or not to work? That is the question
*/
public class Solution {
public static void main(String[] args) {
Scanner s = new Scanner(System.in);
int age = s.nextInt();
boolean x,y;
x = (age <= 20);
y = (age >= 60); //write your code here
if(x || y) {
System.out.println("You don't have to work");
}
}
}