Just give me a hint how to resolve it...I saw that a lot of people was saying to use modulus..but i don't understand how to use it in this task...
Thanks in advance:)
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 T = reader.readLine();
double t = Double.parseDouble(T);
if (t > 0 && t < 3){
System.out.println("green");
} else if (t >= 3 && t < 4 ){
System.out.println("yellow");
} else if (t >= 4 && t < 5){
System.out.println("red");
}
}
}