requirements 2 - 5 all come up as wrong, but I'm not sure why. I've tested the code for each condition and it works properly but its still saying that im not printing the result to the screen and that I'm not showing the right answer?
package com.codegym.task.task04.task0416;
/*
Crossing the road blindly
*/
import java.io.*;
import java.util.Scanner;
public class Solution {
public static void main(String[] args) throws Exception {
Scanner input = new Scanner(System.in);
double number;
number = input.nextDouble();
if (number > 0 && number < 3 || number >= 5 && number < 7){
System.out.println("green");
}
else if (number >= 3 && number < 4) {
System.out.println("yellow");
}
else if ( number >= 4 && number < 5) {
System.out.println("red");
}
}
}