Java: If Else Statement. 11.2 Congratulations (I need help)
//Explanation is in the code. import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); double score = scanner.nextDouble(); // your code goes here double minimum = 3.5; if (double score > double minimum) { System.out.println("You passed!"); } else { System.out.println("Sorry"); /*Objective: If input is greater then 3.5, print:"You passsed!" If input is not greater then 3.5, print: "Sorry" I do not know why this code won't work. Yes, this is part of the Java course but the "You Passed" part is something I added in to make it more interesting. If you know what the issue is, please point it out and give the corrected code with explanation. The issue shouln't be that complicated so thanks in advance for the help. Sorry if I am asking for too much.*/ } } }