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