+ 1

Help

Tell me please. The question is very simple. But this is important to me. Assignment: Students can apply for a scholarship if their GPA is above 3.5. Write a program that prints the word "Congratulations!" If the student meets the requirements and if not, “Sorry, please try again.” The number must be entered from the console. Can't I see the console in the phone app?

10th Nov 2020, 4:45 PM
Наиль
4 Answers
+ 4
public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); // введите код сюда Double number = scanner.nextDouble; if (number > 3.5) { System.out.println ("Congratulations!"); } else { System.out.println ("Sorry, try again."); } } }
10th Nov 2020, 4:50 PM
Наиль
+ 2
There isn't any interactive console here, Run the code and you will see the input box where you need to enter all the inputs first time only
10th Nov 2020, 4:53 PM
Abhay
Abhay - avatar
0
First show your code here here console doesn't work
10th Nov 2020, 4:48 PM
Sâùtôsh
Sâùtôsh - avatar
0
someone to help with this problem, please?
27th Aug 2021, 4:38 PM
Abdoul Aziz diallo
Abdoul Aziz diallo - avatar