Advertisement
Guest User

IfPass

a guest
Mar 21st, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.32 KB | None | 0 0
  1. import java.util.Scanner;
  2. public class IfPass {
  3.   public static void main (String[] argv) {
  4.     Scanner input = new Scanner(System.in);
  5.     int score;
  6.     score = input.nextInt();
  7.     if (score >= 60) {
  8.         System.out.println("Pass: " + score);
  9.     }
  10.     else {
  11.       System.out.println("Failed: " + score);
  12.     }
  13.   }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement