Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class Misho {
- public static void main(String[] args) {
- Scanner scanner = new Scanner(System.in);
- double a = Double.parseDouble(scanner.nextLine());
- if (a >= 5.5 && a <= 6.0) {
- System.out.println("Excellent!");
- } else if (a > 6 || a<2) {
- System.out.println("Not a grade");
- }else{
- System.out.println("Not excellent.");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement