给出以下代码,请问该程序的运行结果是什么?
class Example{
public static void main(String args[]){
int x=6;
double d=7.7;
System.out.println((x>d)?99.9:9);
}
}
发布于 2021-02-15 03:25:35
【单选题】
A 输出9
B 输出9.0
C 输出99.9
D 编译错误。
查看更多
- 体验AI问答!更聪明、超智能!
- 一款基于GPT的超级AI助手,可以对话、创作、写文案!