Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Grade
- {
- public static void main(String[] args)
- {
- int mark = Integer.parseInt(args[0]);
- if (mark < 40) System.out.println("Fail");
- else if (mark < 50) System.out.println("Third Class");
- else if (mark < 60) System.out.println("Lower Second Class");
- else if (mark < 70) System.out.println("Upper Second Class");
- else if (mark < 80) System.out.println("First Class");
- else if (mark < 90) System.out.println("Above and Beyond");
- else if (mark < 100) System.out.println("Publishable");
- else if (mark == 100) System.out.println("Perfect");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement