皮皮学,免费搜题
登录
搜题
【简答题】
下列给定,函数fun的功能是:根据整型形参n,计算如下公式的值。 A1=1,A2=1/(1+A1),A3=1/(1+A2),...,An=1/(1+A(n-1)) 例如,若n=10,则应输出0.617977。 ”/********found*****/”之后所指的语句有错,请选择下列正确的语句替换。 #include #include #include /*************found**************/ int fun(int n) { float A=1;int i; for(i=2;i<=n;i++) A=1.0/(1+A); return A; } void main() { int n; system("CLS"); printf("\nPlease enter n: "); scanf("%d",&n); printf("A%d=%lf\n",n,fun(n)); } A. float fun(int n) B. int fun(int n); C. int* fun(int n) D. int fun(int *n)
拍照语音搜题,微信中搜索"皮皮学"使用
参考答案:
参考解析:
知识点:
.
..
皮皮学刷刷变学霸
举一反三
【单选题】The Greens____supper now.
A.
was having
B.
were;having
C.
is having
D.
are;having
【单选题】C'est la troisième fois cette semaine il rentre chez lui.
A.
qu’
B.
et
C.
mais
D.
/
【判断题】La troisième est une classe du lycée.
A.
正确
B.
错误
【单选题】The Greens____ supper now.
A.
is having
B.
are having
C.
having
【简答题】La troisième personne est_. Justification: "_"
【单选题】Monsieur Duval habite ___ troisième étage.
A.
à la
B.
dans
C.
à l’
D.
au
【单选题】The Greens____supper now.
A.
is having
B.
are  have
C.
has
D.
are  having
【简答题】We didn’t know when _________________(start).
【单选题】À Shanghai, nous voyions souvent, dans les parcs, des personnes de troisième âge ______ à la boxe chinoise.
A.
s'exercer
B.
s'excercent
C.
s’exerçaient
D.
se sont exercés
【单选题】Donnez-moi le ________ livre du troisième rayon de la bibliothèque.
A.
premier
B.
première
C.
premiers
D.
premières