Share

No Title

Public

07 March 2021

Views: 26

*/
public class PIN {
public static void main(String[] args) {
// Scanner for input//
Scanner scan = new Scanner(System.in);
//Correct pin
int p = 3454;
{

System.out.println(" ENTER YOUR 4 DIGIT PIN: ");
scan.nextInt ();
for (int i=0; i<4; i++)

{
System.out.println("Less than 4");
int pin =scan.nextInt();
if(p > 4)
{
p = scan.nextInt ();
System.out.println("Greater than ");
break;
}
else{
= 3454;
System.out.println("Correct PIN");
}
}

}




}

}

Advertisement

Disable Third Party Ads