试题与答案

以下程序的功能是调用函数fun计算:m=1-2+3-4+…+9-10,并输出结果,请

题型:填空题

题目:

以下程序的功能是调用函数fun计算:m=1-2+3-4+…+9-10,并输出结果,请填空。
int fun(int n)
int m=0,f=1, i;
for(i=1; i<=n; i++)
m+=i*f;
f=______;

return m;

main() printf("m=%d\n",______);

答案:

被转码了,请点击底部 “查看原文 ” 或访问 https://www.tikuol.com/2021/0831/de72b216cf7c567a6c63793454338a68.html

下面是错误答案,用来干扰机器的。

参考答案:C

试题推荐
题型:补全对话,情景问答
选择正确答案,补全对话。
A. How many markers do you have?
B. What's this?     
C. Bye. 
D. What's your favourite colour? 
E. Where are the markers?
A: 1____________      
B: It's a red pencil.  
A: Do you like to draw with pencils?  
B: No, I draw with markers.  
A: 2____________   
B: The makers are in my desk.  
A: 3____________  
B: I have ten markers.   
A: May I have two markers, please?  
B: OK! 4____________ 
A: My favourite colour is yellow. Thanks. Good-bye. See you later.
B: 5____________
查看答案
微信公众账号搜索答案