首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
自考
从键盘输入x的值,根据以下公式计算并输出x和y的值。 #include%<math.h> #include<stdio.h> main() {float x,y; scanf("%f".______);/*第
从键盘输入x的值,根据以下公式计算并输出x和y的值。 #include%<math.h> #include<stdio.h> main() {float x,y; scanf("%f".______);/*第
admin
2008-07-10
24
问题
从键盘输入x的值,根据以下公式计算并输出x和y的值。
#include%<math.h>
#include<stdio.h>
main()
{float x,y;
scanf("%f".______);/*第一空*/
if(x<0)printf("input error!\n");
else
{switch((int)(x/2))
{case 0:y—x;______;/*第二空*/
case 1:
case 2:y=x*x+1;break;
case 3:
case 4:y=______;break;/*第三空*/
default:y=1/(x*x+1);
}
printf("x=%7.2f,y=%10.6f\n",x,y);
}
}
选项
答案
&x break sqrt(x+1)
解析
转载请注明原文地址:https://kaotiyun.com/show/ePAx777K
本试题收录于:
高级语言程序设计题库理工类分类
0
高级语言程序设计
理工类
相关试题推荐
切换
存储转发式的交换基本单位是电报的()
下列关于分析模型的说法错误的是()
请将下面的PAD图转换成流程图。
已定义过程的描述与已管理过程的描述相比更加________。
某单位开发了一个员工住房分配系统,用来给员工分配住房,该系统的功能如下:φ功能一——计算原始分数:根据员工信息(员工号、姓名、年龄、性别、学历、工龄、婚育情况、职称、出勤率)计算原始分,并将员工信息存人员工信息文件中。φ功能二——计算标准分数:根据员工的
软件验证过程中,根据验证的侧重点不同,可以将验证分为5种类型,即需求验证、设计验证、代码验证、__________和文档验证。
实现子系统是由_________、接口和其他子系统组成。
有8个处理单元互连成的并行处理机,按(0,5)、(1,4)、(2,7)、(3,6)配对通信。实现此功能的互连函数的一般表达式为()
#include"stdio.h"structdate{intyear=2000;intmonth;intday;};main(){structdated;d.mo
随机试题
试说明事务的ACID特性分别由DBMS的哪个子系统实现。
坚持马克思主义在意识形态领域指导地位的根本制度是()
A.结节病B.淋巴结核C.肺癌、纵隔淋巴结转移D.淋巴瘤E.胸腺瘤女性,30岁,近2周咳嗽、偶有少量白痰,无发热,胸片见双侧肺门及纵隔淋巴结对称性肿大,PPD皮试(一),应考虑
A.细胞毒素类B.抗代谢类C.抗生素类D.生物碱类E.激素类(2006年第126题)环磷酰胺属于化疗药物的
婴儿腹泻伴低钾血症时下列哪一项不正确
A、肼屈嗪B、硝普钠C、尼莫地平D、可乐定E、卡托普利高血压危象伴急性心肌梗死或左室功能衰竭者最好选用
强度、耐热性和抗蠕变性能好,耐水性优良,可用来制造干燥器壳体的是()。
下列施工现场应设置临时室外消防给水系统的有()。
某施工企业年初向银行贷款流动资金100万元,按季计算并支付利息,季度利率2%,则一年支付的利息总和为()万元。
请在【答题】菜单下选择【进入考生文件夹】命令,并按照题目要求完成下面的操作。注意:以下的文件必须都保存在考生文件夹下。销售部助理小王需要针对2012年和2013年的公司产品销售情况进行统计分析,以便制订新的销售计划和工作任务。现在,请按
最新回复
(
0
)