YavorGrancharov

ExcellentOrNot

Dec 14th, 2016
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.37 KB | None | 0 0
  1. import java.util.Scanner;
  2. public class ExcellentOrNot {
  3.     public static void main(String[] args) {
  4.         Scanner console = new Scanner(System.in);
  5.         double grade = Double.parseDouble(console.nextLine());
  6.         if (grade >= 5.50) {
  7.             System.out.print("Excellent!");
  8.         } else {
  9.             System.out.print("Not excellent.");
  10.         }
  11.     }
  12. }
Add Comment
Please, Sign In to add comment