欢迎来到求知题库网 考试题库官网
全部科目 > 大学试题 > 计算机科学 > 计算机程序设计 > CPP考试

单项选择题

1)#include < iostream >
2)# include < math.h >
3)using namespace std;
4)double max(double x,doubley);
5)void main()
6){
7)double   a,b,c;
8)cout << " input two numbers:\n";
9)cin>>a>>b;
10)c=max(a,b);
11)cout<< " the squart of max imum="<< sqrt(c);
12)}
13)double max(doublex,doubley)
14){
15)if(x>y)
16)returnx;
17)else
18)returny;
19)}

若执行第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

点击查看答案&解析

相关考题