Hi when I check
Example for 2.5:
green
Example for 3:
yellow
Example for 4:
red
Example for 5:
green
it is showing as it should but not passing?
package com.codegym.task.task04.task0416;
/*
Crossing the road blindly
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String tim = reader.readLine();
double time = Double.parseDouble(tim);
if (time >= 5 || time < 3) {
System.out.println("green");
}
if (time >= 3 && time < 4) {
System.out.println("yellow");
}
if (time >= 4 && time < 5) {
System.out.println("red");
}
}
}