Share

1.2

Public

09 March 2021

Views: 20

import java.util.Scanner;
public class PIN {
public static void main(String[] args) {
Scanner SC = new Scanner(System.in);
int p = 3454,pin;

{
System.out.print("ENTER YOUR 4 DIGIT PIN: ");
Scanner scan;
pin = SC.nextInt();

if (p==pin)
{
System.out.println("PIN CORRECT :) ");
}
else{
System.out.println("INCORRECT PIN :( ");
}
}
//CODDED WITH HEART BY JORDI
}
}

Advertisement

Disable Third Party Ads