来源:奥鹏远程教育 日期: 作者:奥鹏作业辅导
可做全部院校网课作业、课程代看、网考、论文辅导!答案请加微信:xx99ttt 或QQ:1514133056
给出下面程序段: if(x0){System.out.println("Hello.");} else if(x-3){System.out.println("Nice to meet you!");} else {System.out.println("How are you?");} 若打印字符串“How are you?”,则x的取值范满分答案
给出下面程序段: if(x>0){System.out.println("Hello.");} else if(x>-3){System.out.println("Nice to meet you!");} else {System.out.println("How are you?");} 若打印字符串“How are you?”,则x的取值范围是
A.x>0
B.x>-3
C.x<=-3
D.x-3
答案:C
给出下面程序段: if(x0){System.out.println("Hello.");} else if(x-3){System.out.println("Nice to meet you!");} else {System.out.println("How are you?");} 若打印字符串“How are you?”,则x的取值范历年参考题目如下: