皮皮学,免费搜题
登录
logo - 刷刷题
搜题
【简答题】
有一函数 -1 (x<0) y= 0 (x=0) 1 (x>0) 有人编写了两个程序 ,请分析它们 是否能实现题目要求,不要急于上机,先分析两个程序的逻辑,画出它们的流程图,分析它们的运行情况 ,然后上机运行,观察和分析结果。 1、 #include int main() { int x,y; printf("enter x:"); scanf("%d",&x); y=-1; if(x!=0) if(x>0) y=1; else y=0; printf("x=%d,y=%d\n",x,y); return 0; } 2、 #include int main() { int x,y; printf("please enter x:"); scanf("%d",&x); y=0; if(x>=0) if(x>0) y=1; else y=-1; printf("x=%d,y=%d\n",x,y); return 0; } 请上传流程图,运行结果,及你的分析结果。
手机使用
分享
复制链接
新浪微博
分享QQ
微信扫一扫
微信内点击右上角“…”即可分享
反馈
参考答案:
举一反三
【单选题】Barriers that prevent the entry of new firms may arise because:
A.
economies of scale exist over a substantial range of industry demand.
B.
marginal revenue is less than average total cost.
C.
the government protects some firms from competition.
D.
of both (a) and (c).
【单选题】标题中滥用品牌名称的商品是?
A.
施华洛世奇水晶饰品
B.
买老凤祥项链赠首饰盒
C.
出售周生生的戒指
D.
可媲美周大福的小金猪
【单选题】Which of the following is NOT true of small firms?
A.
It may be unnecessary for them to send people to colleges.
B.
They cannot afford to send people to colleges.
C.
Their employees may be promoted more quickly.
D.
They may offer positions which you demand.
【判断题】“回到过去,杀死自己的祖父母”这一时间机器的佯谬的不可接受程度堪比相对论中的“双生子佯谬”。()
A.
正确
B.
错误
【单选题】Firms may be tempted to cheat on cartel agreements by:
A.
raising both price and output.
B.
lowering both price and output.
C.
raising price and reducing output.
D.
lowering price and increasing output.
【单选题】下面的软件,哪个不属于矢量绘图软件( )。
A.
Illustrator
B.
PageMaker
C.
FreeHand
D.
Photoshop
【单选题】A firms new marketing approach may not work perfectly because of______.
A.
lack of an information system
B.
limited ability to satisfy customers' needs
C.
difficulty in developing tailored products
D.
all of the above
【判断题】我国公务护照是由公安部发颁发。
A.
正确
B.
错误
【单选题】Subsidies to domestic firms may lead to
A.
An increase in prices
B.
Higher volume of exports
C.
Higher volume of imports
D.
Increase in welfare of the trading partner
【多选题】Which of the following is not the reason that firms may experience diseconomies of scale ?
A.
the firm is too small to take advantage of specialization.
B.
large management structures may be bureaucratic and inefficient.
C.
if there are too many employees, the work place becomes crowded and people become less productiv e.
D.
average fixed costs begin to rise again.
相关题目:
参考解析:
知识点:
题目纠错 0
发布
创建自己的小题库 - 刷刷题