import java.util.Scanner;
public class U3_L6_Activity_Two{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
int x = scan.nextInt();
int y = scan.nextInt();
if(x>=4|| ((y < 5) && ((x+y) < 7))){
System.out.println("pass");
}
}
}
I'm pretty sure this is what you're looking for. Best of luck.
Answer:
If( on_time == True) {
print("Coffee")
} else {
print("No Coffee")
}
Explanation:
Step 1 evaluate with a boolean variable if you are on time
If( on_time == True) {
Step 2 if true you have coffee
print("Coffee")
Step 3 if false you have not coffee
print("No Coffee")