复制代码
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import java.util.*;
public class Demo10{
public static void main(String[] args){
Scanner input = new Scanner(System.in);
System.out.println("请输入账号");
int a = input.nextInt();
System.out.println("请输入密码");
int b = input.nextInt();
if(a==1234){
if(b==12345){
System.out.println("登录成功");
}else{
System.out.println("密码不正确");
}
}else{
System.out.println("账号不正确");
}
}
最后
以上就是孤独蜜粉最近收集整理的关于循环语句嵌套判断的全部内容,更多相关循环语句嵌套判断内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复