I'm not sure why this isn't passing the tasks. When you enter a number it prints out the correct color. But the error says it's not printing out the color. But in the output window it does print it.
Thank you for the help
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 {
//write your code here
Scanner sc = new Scanner(System.in);
double t = sc.nextDouble();
if((t % 5>=0.0 && t % 5<=2.9)){
System.out.println("green");
}
else if((t % 5>=3.0 && t % 5<=3.9)){
System.out.println("yellow");
}
else if((t % 5>=4.0 && t % 5<=4.9)){
System.out.println("red");
}
}
}