borkins

01. Excellent Result

Mar 23rd, 2017
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.33 KB | None | 0 0
  1. /*
  2.  * Simple Conditions
  3.  */
  4. import java.util.Scanner;
  5.  
  6. public class _01_ExcellentResult
  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) System.out.println("Excellent!");
  15.     }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment