Advertisement
Guest User

Untitled

a guest
Sep 25th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. // Check Pass Fail
  2. public static void main(String[] args) {
  3. Scanner input = new Scanner(System.in);
  4.  
  5. System.out.println("Please enter a number.");
  6. int mark = input.nextInt();
  7.  
  8. if (mark >= 50)
  9. System.out.println("PASS");
  10. else
  11. System.out.println("FAIL");
  12.  
  13. System.out.println("DONE");
  14.  
  15. input.close();
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement