-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSignUp3.java
More file actions
29 lines (21 loc) · 783 Bytes
/
SignUp3.java
File metadata and controls
29 lines (21 loc) · 783 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import java.util.Scanner;
public class SignUp3 {
public static void main(String[] args) {
Scanner scn=new Scanner(System.in);
int password=44;
int userno =55;
System.out.println("u:"+userno);
System.out.println("p:"+password);
System.out.println("Please enter your userno :");
userno=scn.nextInt();
System.out.println("Please enter your password :");
password= scn.nextInt();
if(userno==userno && password==password){
System.out.println("Login.. ");}
else {
System.out.println("Wrong userno or password!! ");
}
System.out.println("userno:"+userno);
System.out.println("password"+password);
}
}