欢迎来到财会考试题库网 财会考试题库官网
logo
全部科目 > 大学试题 > 计算机科学 > 全国信息技术应用考试 > Java程序设计

单项选择题

程序:
class TestApp{
public static void main (String[] args){
int x=6;
if (x>l)
System. out. println("x>l");
else if (x>5)
System. out .println("x>5");
else if (x<10)
System. out. println("xelse if (x<29)
System. out .println( "x<29");
else
System. out.println(“以上都不是”);
}
}
上述程序运行后的结果是哪项?()

    A.x>5
    B.x>l
    C.x<10
    D.x<29

点击查看答案&解析
微信小程序免费搜题
微信扫一扫,加关注免费搜题

微信扫一扫,加关注免费搜题