then why is this solution not being accepted??
package com.codegym.task.task04.task0416;
/*
Crossing the road blindly
*/
import java.util.Scanner;
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
Scanner sc = new Scanner(System.in);
double b = sc.nextDouble();
dp(b);
//write your code here
}
public static void dp(double t){
if (t<=5 && t>0){
if (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");}
else if (t>5){
double c = t - 5;
dp(c); }
}
}