borkins

02a. Excellent or Not

Mar 23rd, 2017
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.42 KB | None | 0 0
  1. /*
  2.  * Simple Conditions
  3.  */
  4. import java.util.Scanner;
  5.  
  6. public class _02a_ExcellentOrNot
  7. {
  8.     public static void main(String[] args)
  9.     {
  10.         Scanner scan = new Scanner(System.in);
  11.  
  12.         double grade = Double.parseDouble(scan.nextLine());
  13.  
  14.         if (grade >= 5.50) {
  15.             System.out.println("Excellent!");
  16.         }
  17.         else {
  18.             System.out.println("Not excellent.");
  19.         }
  20.     }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment