+ 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?
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.");
}
}
}
+ 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
0
First show your code here
here console doesn't work
0
someone to help with this problem, please?