Help. The code does not output the desired answer. Where is the mistake. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Help. The code does not output the desired answer. Where is the mistake.

Help. The code does not output the desired answer. Where is the mistake. public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); //введите код сюда double averagescore = scanner.nextdouble(); if(averagescore <= 3.5) { System.out.println("Sorry, try again."); } else { System.out.println("Congratulations!"); } } }

13th Nov 2020, 6:48 AM
Наиль
1 Answer
+ 1
Thanks!!!
13th Nov 2020, 7:55 AM
Наиль