请阅读下面的程序,在空白处填写正确的代码,该程序的功能是:根据对 x 的输入,求 1 到 x 的累加和。 int fun(int n) { int i,c; c=0; for (i=1;i<=n;i++) c=c+i; _______ } void main() { int x; scanf("%d", _______); printf("%d\n",fun(x)); }
手机使用
分享
复制链接
新浪微博
分享QQ
微信扫一扫
微信内点击右上角“…”即可分享
反馈
参考答案:
举一反三
【单选题】There is a relationship model R (employee name, project name, salary, department name, department manager). Suppose each employee can participate in multiple projects, each receive a salary; each proj...
【多选题】Please pick out the correct name from the following items according to the explanation. The ________________ Department checks whether the products are good or not. 2. The __________ Department manufa...
【单选题】There is a relationship model R (employee name, project name, salary, department name, department manager). Suppose each employee can participate in multiple projects, each receive a salary; each proj...