I tried this code with different numbers in external compilers and it works.. why does it not fill the requirements here?
package com.codegym.task.task04.task0416;
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 inDouble = Sc.nextDouble();
int tIn = (int)inDouble;
int t = 0;
String c = "error";
while (tIn>t){
if (tIn>t) {
c = "green";
t = t + 3;
if (tIn>t){
c="yellow";
t++;
if(tIn>t){
c="red";
t++;
}
}
}
}
System.out.println(c);
}
}