desislava_topuzakova

01. Excellent Result

Sep 19th, 2021
244
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class ExcellentResult_01 {
  4. public static void main(String[] args) {
  5. //1. прочитаме цяло число: оценка
  6. //2. проверка дали оценката е >= 5.00 -> "Excellent!"
  7. Scanner scanner = new Scanner(System.in);
  8. int grade = Integer.parseInt(scanner.nextLine());
  9. if (grade >= 5) {
  10. System.out.println("Excellent!");
  11. }
  12. }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment