Advertisement
desislava_topuzakova

01. Excellent Result

Apr 10th, 2021
557
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.44 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) -> "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
Advertisement