单项选择题
1)#include
2)#include
3)usingnamespacestd;
4)doublemax(doublex,doubley);
5)voidmain()
6){
7)double a,b,c;
8)cout<<"inputtwonumbers:\n";
9)cin>>a>>b;
10)c=max(a,b);
11)cout<<"thesquartofmaximum="<
13)doublemax(doublex,doubley)
14){
15)if(x>y)
16)returnx;
17)else
18)returny;
19)}
程序第11行中sqrt( c )的作用是:()
A、求c的绝对值
B、求c的平方
C、求c的开平方
D、将c进行类型转换
点击查看答案&解析
相关考题
-
单项选择题
若执行第9行时,输入89后按回车,则程序第11行输出:()
A.the squart of max imum=sqrtC.
B.the squart of max imum=3.08221
C.the squart of max imum=3
D.the squart of max imum=9.0 -
单项选择题
该程序是在哪一行结束的:()
A、第3行
B、第4行
C、第5行
D、第6行 -
单项选择题
程序的输出结果是:()
A、cout<;<;&rdquo;Iamastudent.\n”
B、";Iamastudent.\n&rdquo;
C、Iamastudent.
D、Iamastudent.\n
