单项选择题
1)#include < iostream >
2)#include < cmath >
3)using namespace std;
4)double max(double x,doubley)
5){
6)if(x>y)
7)return x;
8)else
9)return y;
10)}
11)int main()
12){
13)doublea,b,c;
14)cout <<" input two numbers:\n";
15)cin >> a >> b;
16)c=max(a,b);
17)cout <<" the squart of max imum="<< sqrt( c );
18)}
执行第15行时,若输入“8空格9回车”,则执行完第16行后,变量c的值是:()
A.8
B.8.0000000000000000
C.9
D.9.0000000000000000
点击查看答案&解析
相关考题
-
单项选择题
执行第15行时,若输入“2空格5回车”,则执行完第10行后,y的值分别是:()
A.5
B.5.0000000000000000
C.随机值
D.不存在 -
单项选择题
执行第10行时,系统会回收几个变量:()
A.0
B.1
C.2
D.3 -
单项选择题
执行第15行时,若输入“8空格9回车”,则执行完第9行后返回的值是:()
A.8
B.8.0000000000000000
C.9
D.9.0000000000000000
