Advertisement
tchenkov

L03u02_ExcellentOrNot

Jan 18th, 2017
354
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. /**
  4.  * Created by todor on 17.01.2017 г..
  5.  */
  6. public class u02_ExcellentOrNot {
  7.     public static void main(String[] args) {
  8.  
  9.         Scanner scan = new Scanner(System.in);
  10.  
  11.         double grade = Double.parseDouble(scan.nextLine());
  12.  
  13.         if (grade >= 5.5) {
  14.             System.out.println("Excellent!");
  15.         }
  16.         else {
  17.             System.out.println("Not excellent.");
  18.         }
  19.  
  20.     }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement