皮皮学,免费搜题
登录
搜题
【单选题】
相传国际象棋是古印度的宰相达依的。十分喜欢象棋,决定让宰相自己选择何种赏赐。这位聪明的宰相指着8×8共64格的象棋盘说:陛下,请您赏给我一些麦子吧,就在棋盘的第1个格子中放1粒,第2格中放2粒,第3格中放4粒,以后每一格都比前一格增加一倍,依此放完棋盘上的64个格子,我就感恩不尽了。让人扛来一袋麦子,他要兑现他的许诺。请问:国能兑现他的许诺吗?试编程计算共要多少麦子赏赐他的宰相,这些麦子合多少立方米(已知1立方米麦子约1.42e8粒)?按要求在空白处填写适当的表达式或语句,使程序完整并符合题目要求。#include #defineCONST1.42e8intmain(){intn;doubleterm=1;doublesum=1;for(________;n<=64;n++){________________;sum=sum+term;}printf("sum=%e\n",sum);printf("volum=%e\n",_________);return0;}
A.
第8行:  n=1 第10行: term = term + 2 第15行: sum * CONST
B.
第8行:  n=1 第10行: term = term+2 第15行: sum / CONST
C.
第8行:  n=0 第10行: term = term * 2 第15行: sum * CONST
D.
第8行:  n=2 第10行: term = term * 2 第15行: sum / CONST
拍照语音搜题,微信中搜索"皮皮学"使用
参考答案:
参考解析:
知识点:
.
..
皮皮学刷刷变学霸
举一反三
【单选题】I don’t think he understands what he reads, _____?
A.
doesn’t he
B.
do I
C.
don’t I
D.
does he
【单选题】What does a man do when he cannot get exactly what he wants?
A.
He buys a similar thing of the colour he wants.
B.
He usually does not buy anything.
C.
At least two of his requirements must be met before he buys.
D.
So long as the style. is right, he buys the thing.
【单选题】What does a man do when he can't get exactly what he wants?
A.
He often looks round the shop.
B.
He will ask the shop assistant for advice.
C.
He will decide to buy something instead.
D.
He doesn't buy anything else.
【单选题】在标记中,用来指定外部脚本文件路径的是什么属性?
A.
language
B.
type
C.
src
D.
defer
【单选题】What does Mark say he can’t do ?
A.
He can’t always remember things.
B.
He can’t remember things when he’s tired.
C.
He can’t do one activity for a long time.
D.
He can’t improve his memory.
【单选题】下面不属于左右型结构的汉字是( )
A.
B.
C.
D.
【简答题】What does he do at present? He is _____________.
【简答题】在 标记中,用来指定外部脚本文件路径的是 ___________ 属性
【单选题】下面不属于左右型结构的汉字是( )。
A.
B.
C.
D.
【单选题】What ______ he _______? He is a reporter. [     ]
A.
do, do
B.
is, does
C.
is, doing
D.
does, do
相关题目: