I cant find out what is wrong in this code .....
Display green when the light is Green???
didn't got the actual meaning......
package com.codegym.task.task04.task0416;
/*
Crossing the road blindly
*/
import java.util.Scanner;
public class Solution {
public static void main(String[] args) throws Exception {
//write your code here
Scanner scan = new Scanner(System.in);
double t = scan.nextDouble();
double b= (t%5);
if (b>=0 && b<1){
System.out.println("red");
}
else if(b>=1 && b<3){
System.out.println("green");
}
else if(b>=4 && b<5){
System.out.println("yellow");
}
}
}