Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
- */
- package hackingbank;
- import java.util.Scanner;
- /**
- *
- * @author Broccoli
- */
- public class HackingBank {
- public static void main(String[] args)
- {
- Scanner scan = new Scanner(System.in);
- System.out.println("Enter 3 numbers");
- int digit1 = scan.nextInt();
- int digit2 = scan.nextInt();
- int digit3 = scan.nextInt();
- int code = ((digit1 + digit2 + digit3)/10);
- switch(code)
- {
- case 2:
- System.out.println("Statue of Liberty: Hacked");
- break;
- default:
- System.out.println("No Hack");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement