I currently have this code:
    int kills = 1;
    int deaths = 2;
    double kdr = 0;
    if(kills > 0 && deaths == 0) {
        kdr = kills;
    } else if(kills > 0 && deaths > 0){
        kdr = kills/deaths;
    }
    System.out.println(kdr);
You can test it here.
Why is the output 0.00 and not 0.5?
 
     
    