Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Check Pass Fail
- public static void main(String[] args) {
- Scanner input = new Scanner(System.in);
- System.out.println("Please enter a number.");
- int mark = input.nextInt();
- if (mark >= 50)
- System.out.println("PASS");
- else
- System.out.println("FAIL");
- System.out.println("DONE");
- input.close();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement