hc学习平台

 找回密码
 立即注册
搜索
热搜: 活动 交友 javakc
 › 侯纪昱- › 日志

给出一下代码,请问该程序的运行结果是什么  

2022-08-15 00:04:42 查看(54) 回复(0)

class  Check  {
  public  static  void  main(String  args[])  {
    int  x  =  0,  y  =  4,  z  =  5;
    if  (x  >  2)  {
      if  (y  <  5)  {
        System.out.println("message  one");
      }  else  {
        System.out.println("message  two");
      }
    }  else  if  (z  >  5)  {
      System.out.println("message  three");
    }  else  {
      System.out.println("message  four");
    }
  }
}
A、打印输出message  four
B、打印输出message  three
C、打印输出message  two
D、打印输出message  one  
A

评论 (0 个评论)

facelist

全部作者的其他最新日志



站点统计|举报|Archiver|手机版|小黑屋|Comsenz Inc.

GMT+8, , Processed in 0.195171 second(s), 9 queries .

Powered by javakc! X1.0

© 2004-2014 javakc

f1208.com 备案号:京ICP备14030918号-1

返回顶部