Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- /**
- * Created by todor on 17.01.2017 г..
- */
- public class u02_ExcellentOrNot {
- public static void main(String[] args) {
- Scanner scan = new Scanner(System.in);
- double grade = Double.parseDouble(scan.nextLine());
- if (grade >= 5.5) {
- System.out.println("Excellent!");
- }
- else {
- System.out.println("Not excellent.");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement