![](https://lstatic.shangxueba.com/jiandati/pc/images/pc_jdt_tittleico.png)
[图] 提示:补充横线上的代码,请使用英文半角输入,不要...
提示:补充横线上的代码,请使用英文半角输入,不要留空格及其他不可见字符。 #include <stdio.h> #define MAXNUM 100 int sum(int n, int* pa) { int count, total, temp; *pa = 2; *++pa = 3; total = 5; count = 2; while (count++ < n) { temp = *(pa - 1) * *pa; if (temp < 10) { total += temp; *(pa) = temp; } else { *++pa=temp/10; total += *pa; if (count < n) { count++; pa++; __________________; total += *pa; } } } return(total); } int main() { int n, * p, * q, num[MAXNUM]; do { printf("请输入N=? (2<n<%d):", maxnum + 1); scanf("%d", &n); } while || n>MAXNUM); printf("\nsum(%d)=%d\n", n, sum(n, num)); for (p = num, q = p + n; p < q; p++) printf("%4d", *p); printf("\n"); return 0; }
![](https://lstatic.shangxueba.com/jiandati/pc/images/jdt_panel_vip.png)
![](https://lstatic.shangxueba.com/jiandati/pc/images/no_answer.png)