当前位置:编程学习 > JAVA >>

测试的

个人测试用的

public class TestFor {
public static void main(String[] args) {
int i = 40;

if (i<20) {
System.out.println("a");
}
else if (i<40) {
System.out.println("b");
}
else {
System.out.println("c");
}
}
} --------------------编程问答-------------------- --------------------编程问答-------------------- 这代码看的爽啊... --------------------编程问答--------------------
输出c --------------------编程问答-------------------- 貌似这代码价值不大,你是在练习if()else吗? --------------------编程问答-------------------- 没看懂 --------------------编程问答-------------------- 哈哈。这个我能看懂 --------------------编程问答--------------------
补充:Java ,  非技术区
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,