柠檬试题库
search
首页
计算机
公务员
驾照
关于
share
有以下计算公式
若程序前面已在命令行中包含math.h文件,不能够正确计算上述公式的程序段是
A.if(x>=0) y=sqrt(x); if(x<0) y=sqrt(-x);
B.if(x>=0) y=sqrt(x); else y=sqrt(-x);
C.y=sqrt(x); if(x<0) y=sqrt(-x);
D.y=sqrt(x>=0?x :-x);
热度🔥620
参考答案:C
解析:打开微信小程序查看本题解析
点击打开小程序查看解析
content_copy
扫码免费计算机二级刷题
2024年计算机等级考试题库
推荐
报表页眉的作用是
有以下程序 #include int f ( int m ) { static int n=0; n+=m; return n; } main() { int n=0; printf ( "%d,", f(++n) ); printf ( "%d\n", f(n++) ); } 程序运行后的输出结果是
窗体上有名称为Command1的命令按钮,名称分别为Label1、Label2、Label3的标签。编写如下程序:Private x As IntegerPrivate Sub Command1_Click() Static y As Integer Dim z As Integer n=5 z=z+n y=y+n x=x+y Label1=x Label2=y Label3=zEnd Sub运行程序,连续3次单击命令按钮后,3个标签中分别显示的是( )。
让隐藏的MeForm表单显示在屏幕上的命令是( )。
设有表示学生选课的三张表,学生S(学号,姓名,性别,年龄,身份证号),课程C(课号,课名),选课SC(学号,课号,成绩),则表SC的关键字(键或码)为( )。
标签
二级C语言
sqrt
公式
if
程序